AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.4K members online now
4.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Implemenation Code changed ?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have the following code type on my pages... at bottom of pages just before /body


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1163xxxx-1");
pageTracker._trackPageview();
} catch(err) {}</script>

 

 

 

Ive seen the code has been changed and new code should be included straight after body tag.

 

Is this old code now obsolete and not fully working ?

 

Implemenation Code changed ?

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

This is very old code.

 

Please upgrade to universal analytics rightaway. 

 

Follow all recommendations from GA. :-)

 

https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

 

https://www.optimizesmart.com/universal-analytics-upgrade-guide/