• 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 7 years, 1 month 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?

    Thread Starter akhbarelyaom

    (@akhbarelyaom)

    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 7 years, 1 month 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!

    Thread Starter akhbarelyaom

    (@akhbarelyaom)

    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 7 years, 1 month ago by akhbarelyaom.
    Thread Starter akhbarelyaom

    (@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.

    Thread Starter akhbarelyaom

    (@akhbarelyaom)

    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)

The topic ‘loading both analytics.js and gtas.js !!’ is closed to new replies.