• Resolved Amit Sonkhiya

    (@amitaits)


    Hello,

    While choosing Add manually as Position of tracking-code, the Tracking-code textarea stays empty still after saving the settings. I have tried deactivating then reactivating the plugin. Any help?

    One more question.

    The plugin supports analytics.js. Nowadays Google offers analytics using Global site tag by default.

    <script async src="https://www.googletagmanager.com/gtag/js?id=YOUR_TRACKING_ID"></script>
    	<script>
    	  window.dataLayer = window.dataLayer || [];
    	  function gtag(){dataLayer.push(arguments);}
    	  gtag('js', new Date());
    	  gtag('config', 'YOUR_TRACKING_ID');
    	</script>

    Can the provision of Global site tag be made?

    • This topic was modified 7 years, 10 months ago by Amit Sonkhiya.

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

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

    (@daanvandenbergh)

    Have you entered your UA property code?

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Could you send me a screenshot ofyour settings? I’ll try and replicate the issue.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    I just noticed. For now, temporary enable ‘Track logged in administrators’, save the settings and you’ll see the snippet. Copy it to where you want to place it, and you can disable the setting again and save settings.

    There’s a bug in my code. I’ll have to fix it, but it needs a serious refactoring of the code. So I’ll get to this ASAP.

    Thanks for notifying me!

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    I just released an update that fixes this bug.

    Again, thanks for notifying me!

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Btw, as far as adding Analytics through GTM. It isn’t possible to host GTM’s JS-files locally. So it would go past the scope of my plugin.

    Thread Starter Amit Sonkhiya

    (@amitaits)

    Hello,

    Glad I could point you a bug unintentionally and you have fixed the same quicky although it did take hours. Hope manual placement would have no otherwise effect even the theme utilizes wp_head() function.

    I understand that integrating GTM support is a big pain. However, you should consider it because it’s default now by Google. It can be a new plugin as well and you can easily encourage users to use that.

    Thank for prompt responses and I have also developed 4 plugins. You can see them in my profile here.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Hi again Amit,

    It took hours because I was asleep, hahaha.

    Implementing Analytics via GTM isn’t default. It’s an option. For WordPress-users there are many advanced options when it comes to implementing Analytics, which offer automatic outbound link tracking, etc. CAOS being one example, CAOS combined with Monster Insights being an example of Analytics for WordPress on Sterious 😉

    If you’re set on using Analytics through GTM, you could use the ‘add manually’ function of CAOS, and add the generated snippet to GTM. Although I think that would mean a lot of manual configuration, which would otherwise be set automatically by Google Tag Manager.

    I’ll play around with this soon, maybe you’re right and I could think of a cool way to implement it.

    Thread Starter Amit Sonkhiya

    (@amitaits)

    Hello again!

    Sorry for being late. I was out of the state. You were lucky as felt asleep, Lol. Yes, there are additional complexities as you expressed. Yet, thank you for considering.

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

The topic ‘Manual position of tracking-code’ is closed to new replies.