How can I fix duplicate GA PageView tracking issue in GA4?

Topic summary

  • Issue: Bounce rate and pages per session in Google Analytics appear incorrect, suspected to be caused by duplicate PageView events after setting up GA4.

  • Evidence: Browser inspection shows the warning: “this is a duplicate pageview. The property (tid) and location (dl) are the same as the last pageview hit,” indicating the same tracking property and page location were sent twice.

  • Context: Site is on Shopify; the poster wonders if their Liquid theme contains code that triggers multiple pageview hits and asks whether a snippet should be removed.

  • Status: No fix provided yet. The thread is an open request for guidance on identifying and removing duplicate GA4 pageview tracking (potentially in theme code).

Summarized with AI on January 26. AI used: gpt-5.

Hello,

My bounce rate and pages per session metrics on GA are tracking incorrectly, and I believe this to be due to a duplicate pageview event firing from my website, that I found by inspecting the website code. Not sure if it’s related, but this started happening once I set-up GA4. This message came up when I inspected the website: ‘this is a duplicate pageview. The property (tid) and location (dl) are the same as the last pageview hit’. How can I solve this? Is there some bit of code in the liquid theme that I should get rid of?

Thank you!