: Google analytics tracking code MY google analytics tracking info shows <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
MY google analytics tracking info shows
<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-107xxx48-13', 'auto');
ga('send', 'pageview');
</script>
but the code im the site html shows
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-107xxx48-29'],['_trackPageview']);
_gaq.push(
['panel._setAccount', 'UA-107xxx48-13'],
['panel._trackPageview']
);
Does difference between the 'ga send' in the code and the 'gaq.push' on the site matter?
More posts by @Pierce454
2 Comments
Sorted by latest first Latest Oldest Best
To answer your question, theoretically there's no difference; your're looking at two different styles of Analytics code. It could be you have another issue though.
Without more information it's difficult to say, but it seems the code on your website is the old Google Analytics Tracking Code.
The code you are looking at in Google, is their new version of the tracking code - Universal Analytics. You need to update the Google Analytics tags on your website to match the first example which Google is giving you.
What have you built your site in, and how did you originally install your tracking code?
It looks like your website is using an older version of the Google Analytics code. The GA website is showing you the new code. I can't tell you if you are missing out on any specific features, but if you want to make sure you are getting the most of what GA has to offer you should update your code to use the latest code.
But, as I am sure you've noticed, your older code works just fine. So if you're satisfied with the reporting GA is currently doing then you don't need to do anything.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.