Viewing 3 reply threads
You must be logged in to reply to this topic.
Hi,
Like other posts I have found in this forum I am unable to get Google to recognise that I have tracking installed. This is the code that Google provide:
<script>
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘UA-XXXXXXXX-X’, ‘auto’);
ga(‘send’, ‘pageview’);
</script>
I have pasted the following into the Specular Tracking Code section
jQuery(document).ready(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘UA-XXXXXXXX-X’, ‘auto’);
ga(‘send’, ‘pageview’);
The panel reports a missing semicolon on line 3, I have put this through a couple of different validators and can’t see what the error is.
Any thoughts on what I need to do to get this to work?
Thanks, Alan
Just looking through the console for errors I have found the following
[Error] ReferenceError: Can’t find variable: jQuery
global code (www.mysitename.com, line 300)
Hi: I have the same problem anybody has solution to this issues ?
You must be logged in to reply to this topic.