Trace duplicate page views through SPA navigation
On this page
Two page_view events from one navigation are a reason to inspect collection before celebrating content growth. The opposite pattern, with only the initial view recorded, can indicate that client navigation is untracked.
Julius Fedorovicius’s SPA tracking tutorial starts from observed navigation behavior and verifies the selected implementation. Use that diagnostic approach before adding another History Change trigger.
Write a short journey you can repeat
This fictional supplier-site plan assumes the owner has agreed which changes count as page views:
| Action | Expected page | Expected additional page_view |
|---|---|---|
| Directly open category A | A | 1 |
| Navigate internally to product B | B | 1 |
| Navigate to quote page C | C | 1 |
| Use browser Back | B | 1 |
The plan expects four views. For every step, save the URL, visible title, time and event parameters. Define local interactions, such as expanding specifications, separately. A history event alone does not establish the intended measurement meaning.
Put observations beside possible senders
Run the journey in an approved environment with Tag Assistant or GTM Preview and GA4 DebugView. Retain page_location, page_title and the applicable page_referrer for each view. Compare them with the navigation order.
These are teaching observations, not measurements from this website:
| Observation | Implementation to investigate |
|---|---|
| Two events on first load | Initial Google tag and custom tag may both send a view |
| Two events only during client navigation | Automatic history measurement may overlap a manual route tag |
| B’s event still names A | Dispatch may precede the new page-state update |
| Reload works but client navigation is missing | Check for a usable navigation-complete signal |
Two debug interfaces each displaying one event are not evidence of two collections. Locate the actual sending tags and requests rather than adding observations from different layers.
Give sending a defined owner
Google’s current SPA guidance distinguishes history-based and custom-event methods and warns about overlap between GTM configuration and automatic history tracking.
Inventory enhanced measurement, the Google tag’s initial send, GTM history triggers and developer route events. Establish responsibility for the initial view and subsequent navigations without overlapping sends. Removing a duplicate sender does not mean removing all measurement or disabling unrelated enhanced events.
Step and expected page:
Actual URL, title, preceding page and completion time:
Observed page_view and originating tag:
Expected versus actual count:
Missing, duplicate or stale-parameter evidence:
Responsible sender, change scope and rollback:If a developer supplies a route-complete event, agree when the new page facts are ready. Include asynchronous loading and Back behavior rather than testing only the fastest navigation. URLs and titles must not carry contact details or other personal information.
Reuse the ledger after the repair
Repeat A, B, C and Back to B. Check counts and parameters per step, then test reload, direct deep entry and another page using the template. Preserve code or container versions and test conditions.
In this exercise, reducing eight recorded events to the expected four supports a duplicate-send repair. It does not mean real visits fell by 50%. Annotate the affected historical period rather than arbitrarily halving past reports.
Once views are reliable, verify successful inquiry events and sources. Tracking correctness and content growth need separate acceptance evidence.