-
-
Hello, i paste Google Analytics code into Specular > General Options > Tracking Code and it’s not working.
I must remove <script> tags? or /*jQuery(document).ready(function(){});*/
My code is:
/*jQuery(document).ready(function(){
});*/
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-109577112-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘UA-109577112-1’);
</script>Thanks
-
Hello,
The correct form of the code is this:
/*jQuery(document).ready(function(){ });*/ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-109577112-1');
Let us know.
Season’s Greetings! -
-
Hello,
Can you please send me a link of the site?
Best regards!
-
-
Hello,
I checked the site via inspect element and i see the google analytic code is present. See screenshot: https://postimg.org/image/jyiaepiud/
What issue are you having with it?
Let us know.Best regards!
-
Yes the code is present but not working.
It’s no active user on Goolge Analytics.
-
i only want to paste the code of google analytics. i did what you said, and it’s not working
-
Hello,
Sorry for the late reply.
Please try again adding the code you received from your google account. Without removing the<script>
tags.
Example:<script async src="https://www.googletagmanager.com/gtag/js?id=UA-109577112-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-109577112-1'); </script>
Let us know.
Best regards!
- This reply was modified 6 years, 2 months ago by Mirela.
-
You must be logged in to reply to this topic.