• Hello, the CAOS latest version is installed and setup for manual placement, and I manually placed the code in my child’s header.php file, but still it’s showing the following under Leverage browser caching:

    https://www.googletagmanager.com/gtag/js?id=AW-851388111&l=dataLayer&cx=c (15 minutes)
    https://www.googletagmanager.com/gtag/js?id=UA-93039094-1&l=dataLayer&cx=c (15 minutes)
    https://www.googleadservices.com/pagead/conversion_async.js (1 hour)
    https://www.google-analytics.com/analytics.js (2 hours)

    I have confirmed that gtag isn’t being loaded anywhere else, and when I manually remove the caos-analytics/gtag.js/ script added to the header and re-run PageSpeed, it’s no longer showing the offending Google links.

    Here’s the exact code added to header:

    <script default src='//cdn.our.news/wp-content/cache/caos-analytics/gtag.js?id=UA-93039094-1'></script>
    <script>
        window.dataLayer = window.dataLayer || [];
    
        function gtag() { dataLayer.push(arguments); }
        gtag('js', new Date());
        gtag('config', 'UA-93039094-1', {"cookie_prefix":"CaosGtag","cookie_domain":"our.news","cookie_expires":2592000,"cookie_flags":"samesite=none;secure"});
        gtag('config', 'AW-851388111');
    </script>
    </script>

    Any suggestions? Thanks!

    • This topic was modified 4 years, 2 months ago by rzack.

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

Viewing 1 replies (of 1 total)
  • Plugin Author DaanvandenBergh

    (@daanvandenbergh)

    Hi!

    This might be due to your settings in Google Analytics. It could be you have things like conversion tracking, ecommerce, display features, etc. still enabled.

    It’s correct that analytics.js is loaded externally. gtag.js doesn’t work (anymore) if analytics.js is loaded locally.

    Is there a specific reason you chose to use gtag.js? If not, just use analytics.js. It’s much faster. ??

Viewing 1 replies (of 1 total)
  • The topic ‘Leverage browser caching still showing googletagmanager.com’ is closed to new replies.