• Resolved Megunticook

    (@megunticook)


    Noticing that the tag this plugin generates is telling Google to ignore pageviews. See the last line–this is the tag on my hompeage:

    <script async src='https://www.googletagmanager.com/gtag/js?id=G-S1GPWGHL3E' id='google-tag-manager-js'></script>
    <script id='google-tag-manager-js-after'>
    	window.dataLayer = window.dataLayer || [];
    	function gtag(){dataLayer.push(arguments);}
    	gtag('js', new Date());
    	gtag('config', 'G-XXXXXXXXXXXX', { 'send_page_view': false });
    </script>

    Why do we need to tell Google Analytics not to track pageviews? I don’t see any option to set this in the plugin configuration settings. Intuitively it seems like we want Google to track pageviews here…

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Paulina H. (a11n)

    (@pehaa)

    Hi there,

    Great question!

    The { 'send_page_view': false } does not necessarily mean that page views are not tracked. This only means that the plugin that you’re using doesn’t track pages automatically (automatically firing the tracking of the page by sending the browser title and the URL).

    I’m not sure from the snippet which extension you’re using on your site but most of them trigger the page view from the code. The { 'send_page_view': false } option prevents counting page views twice.

    Hope that helps ??

    Thread Starter Megunticook

    (@megunticook)

    Thanks for your response.

    You asked about which extension I’m using–isn’t this the forum for the WooCommerce Google Analytics Integration extension? Anyway that’s the one I’m using now.

    Didn’t realize the ‘send_page_view’:false was just to prevent double counting. Maybe I don’t fully understand what fires the pageview event for Google–I thought it was the tracking code snippet.

    I tried looking at this using the “Google Tag Assistant Legacy” Chrome browser extensions. Getting some odd results in the report–saying things like “Add Google Analytics,” “Invalid or Missing account ID”, “non-standard implementation”, “Multiple installations of Global site tag (gtag.js) detected”

    Looking at my Analytics page though it seems like data is being received there just fine. I wonder if this Google Tag Assistant is flawed…

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @megunticook

    Looking at my Analytics page though it seems like data is being received there just fine. I wonder if this Google Tag Assistant is flawed…

    Thanks for confirming that the Analytics works as expected.

    I tried looking at this using the “Google Tag Assistant Legacy” Chrome browser extensions. Getting some odd results in the report–saying things like “Add Google Analytics,” “Invalid or Missing account ID”, “non-standard implementation”, “Multiple installations of Global site tag (gtag.js) detected” I wonder if this Google Tag Assistant is flawed…

    It’s quite possible that the extension is using older code (Legacy) and possibly not getting the correct tracking ID identified.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘why are pageviews disabled?’ is closed to new replies.