bomarley
Forum Replies Created
-
Thank you so much, that did the trick!
Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyYou bet!
Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyOk just confirmed it with Google Analytics real time, tracking is working correctly and had nothing to do with your plug-in. Something with WP Rocket was stripping the script. I really appreciate you help and your script is just awesome!
Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyI think I may have found the problem, we also use WP Rocket. When disabling WP rocket the tag manager script loads correctly now with the following.
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-private');</script>
With WP Rocket enabled it loads only
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-REMOVEDFORPRIVACY;
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyThis is what is loading in live source code.
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-REMOVEDFORPRIVACY" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
- This reply was modified 3 years, 5 months ago by Steven Stern (sterndata).
Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyI sure will, let me get back to you shortly.
Forum: Plugins
In reply to: [Async JavaScript] Google Analytics not working correctlyThanks for the swift response! No we are not, I have it loading via Google tag manager.