Support » Plugin: CAOS | Host Google Analytics Locally » loading both analytics.js and gtas.js !!

  • Resolved akhbarelyaom

    (@akhbarelyaom)


    Hi 🙂

    i installed the plugin to load gtags js locally, and it works fine .. but it also load analytics.js from google it self .. i checked every plugin and every theme file and all hooks and functions and didn’t find any thing wrong!

    guess what! .. when i deactivate CAOS, the analytics.js disappear and stop loading!!

    so i think it is load by request from the locally gtags file it self as it have a request in the gtags js file entire content.

    so can we fix this load or do some magic to force load both analytics.js and gtags.js locally??

    awaiting your feedback and have a good day.

    Regards,

    • This topic was modified 3 months, 2 weeks ago by akhbarelyaom.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Are you using it with Google Tag Manager? Could it be that the external analytics.js is loaded by a setting within your GTM container?

    Yes i remember i used tag manager from google analytics account but i’m not sure 😀 .. how can i check this and disable tag manager please ? 🙂

    • This reply was modified 3 months, 1 week ago by akhbarelyaom.
    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Well, I’m no Tag Manager expert, but I’m pretty sure that if you login at https://tagmanager.google.com you’ll find everything you’re looking for!

    i thought it is some settings in the analytics account it self, but i tested the link and it say i don’t have tag manager account as in the screenshot: https://i.ibb.co/3FRbRcw/image.png :/

    so it is not the fix what we thought :/

    awaiting your feedback 🙂

    • This reply was modified 3 months, 1 week ago by akhbarelyaom.

    Hi,

    any update please 🙂

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Well, I think it is default behavior of gtag.js. It’s Google’s global tag, so all services can be connected to the same tag.

    Since you have Analytics enabled and you’re loading gtag.js, gtag.js is connecting to your Google-account to see which services you have enabled and dynamically loads analytics.js from their host (which makes sense).

    Since there’s no way of locally hosting dynamically loaded files, you should consider switching CAOS to analytics.js, it offers the same features for Google Analytics.

    Thank you so much it is fixed now as you said 🙂

    Best regards and have a good day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.