fpaul Posted September 17, 2013 Share Posted September 17, 2013 Hello, Can anyone advise where can I see Google Analytics code is stored ? I’ve already updated GA id though Google Analytics module but I just want to recheck. Because for some dubious reasons Google is unable to produce tracking results. Thanks in advance. Fred Link to comment Share on other sites More sharing options...
El Patron Posted September 17, 2013 Share Posted September 17, 2013 Hi Fred, From most browsers, navigate to your front office, right click the screen and 'show source'. There you can search and hopefully see your ga code. Fred Link to comment Share on other sites More sharing options...
fpaul Posted September 17, 2013 Author Share Posted September 17, 2013 Hi Fred, I checked page source and found ga code. It shows: </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-12345-1']); // Recommanded value by Google doc and has to before the trackPageView _gaq.push(['_setSiteSpeedSampleRate', 5]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> But in GA Property Settings --> Tracking info --> Tracking code, i see below: <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-12345-1', 'example.com'); ga('send', 'pageview'); </script> Do you think is there anything wrong with the code generated through GA module ? Thanks again. Fred Link to comment Share on other sites More sharing options...
El Patron Posted September 17, 2013 Share Posted September 17, 2013 it may just take a little time for google accept new domain for analytics. did you try using analytics in 'real time' and then navigate to the front office to see if tracked in analytics? Link to comment Share on other sites More sharing options...
Dh42 Posted September 17, 2013 Share Posted September 17, 2013 How long has the code been active? It has taken me 24hrs before google starts tracking my site before. Also, did you use ua-12345-1 in the module, or did you use that in the example to block out your real property code? Link to comment Share on other sites More sharing options...
fpaul Posted September 17, 2013 Author Share Posted September 17, 2013 (edited) Yes, I did. Last 2 weeks myself and others have navigated to the front office and I can't see any visits on GA report. It is rather strange I think. UA-12345-1 and example.com are mentioned only example purpose. Thanks. Edited September 17, 2013 by fpaul (see edit history) Link to comment Share on other sites More sharing options...
fpaul Posted September 17, 2013 Author Share Posted September 17, 2013 I thought there was something wrong with the account that was created so today I deleted old GA account and created a new one. Hope it'll show result after 24 hours. Link to comment Share on other sites More sharing options...
Recommended Posts