This object is in archive! 
Google Analytics Code
Answered
Hey guys,
Google's current analytics code looks different to the one in the tracking area:
ga('create', 'UA-XXXXXXX-Y', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['inflatableoffice.com'] );
ga('send', 'pageview');
Now looks like this.........
<!-- Global site tag (gtag.js) - Google Analytics -->
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-xxxxxxxx-2');
How should I proceed?
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
The same question
Paste in the new code from google, and under this tag paste in the following (and replace the GA_TRACKNG_ID with yours):
gtag('config', 'UA-xxxxxxxx-2');
gtag('config', 'GA_TRACKING_ID', {
'linker': {
'accept_incoming': true
'domains': ['inflatableoffice.com']
}
});
Paste in the new code from google, and under this tag paste in the following (and replace the GA_TRACKNG_ID with yours):
gtag('config', 'UA-xxxxxxxx-2');
gtag('config', 'GA_TRACKING_ID', {
'linker': {
'accept_incoming': true
'domains': ['inflatableoffice.com']
}
});
Replies have been locked on this page!