Hello,
I’ve tried to use the google analytics plugin from pro but somehow it doesn’t work. Until now it always worked but now with the new site it doesn’t.
What happens is the following:
I paste the tracking code in the plugin.
script async src=“https://www.googletagmanager.com/gtag/js?id=UA-20915236-15”>
script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-20915236-15’);
And when I hit update the first of the 2 scripts gets deleted. So it ends up with this code:
script>/script>
script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-20915236-15’);
I have deliberedly removed the fist < symbols for the script otherwise it disappears in the message. On my side this I correct. My site is www.dutchjuggler.com I hope you can help quick because I would like to see what happens now after I’ve updated the site.
with regards,
Jeroen