Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter backen

    (@backen)

    Perhaps this helps someone. I investigated a bit more and the faulty code that disables page_view recording:

    <script type='text/javascript' id='google-tag-manager-js-after'>
    	window.dataLayer = window.dataLayer || [];
    	function gtag(){dataLayer.push(arguments);}
    	gtag('js', new Date());
    	gtag('config', 'G-Y0Y3RRYPY1', { 'send_page_view': false });
    </script>

    is only generated if you use a GA4 property id (G-XXXXXX) if you use the old Universal Analytics id (UA-XXXXX) the code disappears.

    So for now I’m switching back to UA to get this plugin working.

    Thread Starter backen

    (@backen)

    Thanks for reaching out. Happy to help you with this!
    I understand you went ahead with testing the tracking and made sure it’s sending over the correct data to Google, as described in the related support section here. Correct?

    Yes! Google tag assistant is recording everything except page_views without any problems.

    By default, this plugin always adds pageview tracking for Google Analytics.

    Not in my case!
    This code (that turns page_vies off) appears in the source when I use your plugin (if I deactivate your plugin it goes away or if I turn off “add-to-cart events” in your settings).

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

    You can check it out live at https://nesconnector.se

    Thanks

    Thread Starter backen

    (@backen)

    Yes that seams to be the case. Turning off the “add-to-cart events” option removed the

    gtag('config', 'G-Y0Y3RRYPY1', { 'send_page_view': false });

    code. But on the other hand stopped add_to_cart_events.

    So is this a bug? Is there a way to turn page_view events on without turning add_to_cart events off?

    Thread Starter backen

    (@backen)

    The creator of the plugin “Krokedil” could recreate the problem and I think they have released a fix for it. At least the changelog indicates so.
    change log

    I can not confirm because I went for the older Payson V1.0
    Payson V1.0

    No it’s far from perfect but better then publicly showing scrambled characters and I have advertisers that expects there ad to rotate on my site so turning that of is not an option.
    Perhaps the workarounds can give the author some clue on how to solve the problem (or perhaps it’s a w3 bug).
    Right now i’m using workaround 2.

    Having the same problem with scrambled characters. I have found two separate workarounds (none of them perfect). Allowing both W3 to cache and AdRotate to rotate ads.

    1. In W3 deactivate HTML compression (Browser Cache -> HTML & XML -> Enable HTTP (gzip) compression)
    2. In W3 Enable Page Cache Debug (General Settings -> Debugg -> Page Cache)

    Im using the free version.

Viewing 6 replies - 1 through 6 (of 6 total)