GA4

Posted in: Newspaper
Post count: 73

Hello, we have noticed a double page_view hit being sent to GA4 for each article loaded via infinity scroll.

Specifically, when an article loads through the ajax/infinity scroll mechanism, two separate page_view hits are fired:
1. One originating from the ajax loader context
2. One from the main GA4 session

This results in each infinity-scrolled article being counted twice in GA4.

Our current setup:
– GA4 configured via Google Site Kit
– Enhanced Measurement enabled, including page_view tracking for virtual navigation
– Newspaper theme with infinity scroll enabled

I have verified this by inspecting the Network tab and confirming two distinct page_view requests fire per infinity scroll article load:

dl=https://colombiaone.com/2026/03/21/occupations-disappeared-over-time/?tdb_action=tdb_ajax
en=page_view&_fv=1&_nsi=1&_ss=1
frm=1
cid=XXXXXXXXX
_p=1774196751760

and

dl=https://colombiaone.com/2026/03/21/occupations-disappeared-over-time/
en=page_view
frm=0
cid=XXXXXXXXX
_p=1774196739163

My questions are:
1. Is this a known behaviour with the Newspaper theme’s infinity scroll and GA4 Enhanced Measurement running simultaneously?
2. Is there a recommended configuration or setting within the theme to prevent the duplicate hit?

Any guidance would be appreciated!

Thank you!

Post count: 35449

Hi,
What’s happening here is that Google Analytics 4 Enhanced Measurement is automatically tracking page views, while the Newspaper Theme also triggers its own tracking when content is loaded via AJAX. Since infinite scroll relies on AJAX, both systems fire a page_view, which results in duplicates.
The simplest and fastest solution is to disable GA4 Enhanced Measurement for page changes.
If you prefer to keep Enhanced Measurement enabled, you can instead filter out the AJAX hits, for example by excluding events where:
the parameter frm=1 or _fv=1 is present, or the URL contains tdb_ajax
This will help prevent duplicate page_view counts in reports.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.