This object is in archive! 

Google Analytics

David P. shared this question 9 years ago
Answered

Hi,


I was just looking again in the Google analytics stuff since it isn't working very well. the tracking of adwords etc.


Now I noticed that the format of analytics has changed


nowadays it looks like

how do I add the necessary requirements for you coding of the example?


(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','//http://www.google-analytics.com/analytics.js','ga');


ga('create', 'UA-XXXXXXX-X', 'auto');

ga('send', 'pageview');

Best Answer
photo

The current code should work because I don't believe Google has deprecated it. However, we will upgrade to the latest when we have a moment.

Comments (1)

photo
1

The current code should work because I don't believe Google has deprecated it. However, we will upgrade to the latest when we have a moment.

Replies have been locked on this page!