# Page URL and Title not working in SPA tracking via GTM

**URL:** <https://community.piwik.pro/t/page-url-and-title-not-working-in-spa-tracking-via-gtm/4894>\
**Category:** Data collection and tags\
**Created:** [February 11, 2025, 10:34pm UTC](https://community.piwik.pro/t/page-url-and-title-not-working-in-spa-tracking-via-gtm/4894 "2025-02-11T22:34:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Optizent](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/optizent/32/475_2.png) [@Optizent](https://community.piwik.pro/u/Optizent)\
**Post date:** [February 11, 2025, 10:34pm UTC](https://community.piwik.pro/t/page-url-and-title-not-working-in-spa-tracking-via-gtm/4894/1 "2025-02-11T22:34:22Z")

</div>

We are using GTM to implement tracking for a small SPA site. The pages are coming across but the page title and page url stays the same.

Anybody know how to fix it?

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/2/2a0c5ee376061bcdb70de885ea04e58048c21cc3.png)

---

<div class="post-metadata">

**Author:** ![sararekowska](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sararekowska/32/1582_2.png) [@sararekowska](https://community.piwik.pro/u/sararekowska)\
**Post date:** [February 12, 2025, 12:25pm UTC](https://community.piwik.pro/t/page-url-and-title-not-working-in-spa-tracking-via-gtm/4894/2 "2025-02-12T12:25:05Z")

</div>

How does your setup look? Are you using virtual page views / SPA tracking settings? What exactly do you mean by “using GTM to implement tracking”?

---

<div class="post-metadata">

**Author:** ![Optizent](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/optizent/32/475_2.png) [@Optizent](https://community.piwik.pro/u/Optizent)\
**Post date:** [February 12, 2025, 10:23pm UTC](https://community.piwik.pro/t/page-url-and-title-not-working-in-spa-tracking-via-gtm/4894/3 "2025-02-12T22:23:28Z")

</div>

Triggering page view using “History Change” trigger in GTM. I will share screenshots later.
