Why is GTM duplicating my Google Analytics pageviews?

Google Tag Manager1hold.de TeamGoogle Certified SpecialistMarch 21, 2026

Website analytics often present an anomaly: Google Analytics reports double the expected pageviews. This common issue indicates a misconfiguration within the tracking setup. Specifically, Google Tag Manager (GTM) is frequently the source of these duplicated pageviews. The root cause typically involves redundant tracking code or incorrectly configured tags. Resolving this requires a systematic audit of both your website’s source code and your GTM container. Identifying and consolidating these duplicate tracking mechanisms will restore data accuracy. For further insights into common tracking challenges, consult our FAQ knowledge base.

Technical Background

Google Analytics collects pageview data by sending hit requests to specific endpoints. For Universal Analytics, this is typically `www.google-analytics.com/collect`, while GA4 uses `www.googletagmanager.com/gtag/js` to load its library and then sends data to `www.google-analytics.com/g/collect`. Each request carries a `t=pageview` parameter, signaling a pageview event. The Analytics backend processes every distinct hit it receives. Consequently, if a browser sends two separate `pageview` requests for the same URL within a short timeframe, Analytics records two distinct pageviews. This occurs even if both requests originate from the same user and session. The system does not automatically de-duplicate these events based on URL or timestamp alone. Instead, it relies on the integrity of the incoming hit stream. Therefore, any mechanism firing an additional `pageview` event will result in inflated metrics. This often manifests as a 100% increase in pageview counts compared to user counts.

Root Causes and Diagnosis

Several distinct configurations lead to duplicated pageviews. Diagnosing the issue requires a methodical approach. First, check for redundant GA implementation. Many sites have a hardcoded `gtag.js` or `analytics.js` snippet directly in the HTML. Additionally, a GTM container might then fire another GA Pageview tag. This creates two independent tracking mechanisms. Inspect your website’s source code for any direct GA scripts outside the GTM container. Second, within GTM, multiple GA Pageview tags might exist. Specifically, examine your GTM workspace for duplicate Universal Analytics Pageview tags or multiple GA4 Configuration tags, each firing on the same page load trigger. Third, Single Page Applications (SPAs) often cause this. If a default `Page View` trigger fires on initial load, and a `History Change` trigger also sends a pageview, duplication occurs. Furthermore, an external link to Google’s official Tag Manager troubleshooting guide offers further diagnostic steps. Fourth, verify that server-side GTM is not sending redundant pageview events if a client-side container is also active.

Double vs. Single Analytics Implementation Double (Error) GTM + Hardcoded Distorted metrics GTM + Hardcoded 2x pageviews VS Single (Correct) GTM only Correct data GTM only 1x pageview Double Single

Impact of Duplicate Pageviews Value 25 50 75 Expected range 2x Pageviews 15% Bounce rate +70% Session duration 1x Correct data Metric Distorted Correct

Solution

Resolving duplicated pageviews requires precise adjustments. First, audit your website’s HTML source code. Remove any direct `gtag.js` or `analytics.js` snippets. Ensure only the Google Tag Manager container snippet remains on the page. Second, access your GTM workspace. Navigate to “Tags” and identify all Google Analytics-related tags. Consolidate Universal Analytics Pageview tags to a single instance. For GA4, ensure only one GA4 Configuration tag exists, as it implicitly sends a pageview event by default. Third, review your triggers. If using an SPA, configure a custom `History Change` trigger that fires a virtual pageview event. Ensure this does not overlap with the initial `Page View` trigger. Specifically, use GTM’s Preview mode to observe tag firing behavior. Verify that only one pageview event fires per actual page load or SPA route change. Publish your container changes only after thorough validation.

Always use GTM’s built-in tag sequencing or firing exceptions to prevent unintended tag interactions. For instance, set a GA4 Configuration tag to fire once per page and ensure no other pageview events are implicitly or explicitly sent by other tags.

Conclusion

Duplicated pageviews in Google Analytics invariably stem from redundant or misconfigured tracking code. A meticulous audit of your website’s source and GTM container is essential for data accuracy. Regular testing with GTM’s Preview mode prevents future discrepancies. For comprehensive support with your tracking setup, consider our Google Tag Manager consulting services. We also offer expert SEO optimization to enhance your digital presence.

Need personal advice?

Our Google-certified experts are happy to help – free and without obligation.

Book a meeting