# SPA tracking - the event fires, but no Page View is sent

**URL:** <https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634>\
**Category:** Data collection and tags\
**Created:** [February 13, 2024, 4:51pm UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634 "2024-02-13T16:51:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anders](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anders/32/2506_2.png) [@Anders](https://community.piwik.pro/u/Anders)\
**Post date:** [February 13, 2024, 4:51pm UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/1 "2024-02-13T16:51:01Z")

</div>

Hi all,

Trying to learn the ropes in PP, yet it is elusive. Any ideas on the following:

The SPA tracking is toggled on in Admin, and the debug shows the event has fired. The Page Url in the Variables tab is correct, i.e. the URL with the #fragment is there.

In Analytics debug, there is no Page View with the relevant Page URL. Why?

The Pages report has a ?subpage= parameter on a few page views. When you click on the link in the report, you get sent to the correct page. This is 0,02% of the hits. For all practical purposes, the SPA tracking does not work.

Further the fragment seems to be stripped from the URL on regular page-load. Why?

---

<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 14, 2024, 10:34am UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/2 "2024-02-14T10:34:31Z")

</div>

Hi!

How did you implement Piwik PRO? Do you use any library (Angular/React)?

---

<div class="post-metadata">

**Author:** ![Anders](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anders/32/2506_2.png) [@Anders](https://community.piwik.pro/u/Anders)\
**Post date:** [February 14, 2024, 10:46am UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/3 "2024-02-14T10:46:17Z")

</div>

The PP script is fired by GTM.

---

<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 14, 2024, 11:43am UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/4 "2024-02-14T11:43:44Z")

</div>

And what about the library? What is the website written in? I’m asking because depending on that we have some recommendations for SPA tracking.

---

<div class="post-metadata">

**Author:** ![Anders](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anders/32/2506_2.png) [@Anders](https://community.piwik.pro/u/Anders)\
**Post date:** [February 14, 2024, 12:50pm UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/5 "2024-02-14T12:50:46Z")

</div>

Right now it is EPIserver - Optimaizely, but it will be changed to Sanity in 2024 some time.

---

<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 15, 2024, 12:53pm UTC](https://community.piwik.pro/t/spa-tracking-the-event-fires-but-no-page-view-is-sent/3634/6 "2024-02-15T12:53:32Z")

</div>

Alright, I think maybe there might be some issues with the structure of your site that might not work with the automatic SPA tracking. Have you tried tracking page views manually? Here is a guide on how to set it up: [How can I track a single-page application (manual method)? | Piwik PRO help center](https://help.piwik.pro/support/questions/how-can-i-track-a-single-page-application-manual-method/).
