Mobile app version of vmapp.org
Login or Join
Murray432

: Migrating to Google Universal Analytics I'm currently using ga.js and I want to upgrade to the universal analytics. Do I need to restate all my old ga calls to do that or is it backwards

@Murray432

Posted in: #GoogleAnalytics

I'm currently using ga.js and I want to upgrade to the universal analytics.

Do I need to restate all my old ga calls to do that or is it backwards compatible. The google documentation seems a big vague on this topic.

example of a ga call:

_gaq.push(['_setAllowAnchor', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);


I want to know how much re-work I have to do, or if I can just update standard js snippet.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

You will have to use the new syntax with Universal Analytics (if applicable):

_gaq.push(['_setAllowAnchor', true]); // ga('create', 'UA-XXX-Y', {'allowAnchor': true});
_gaq.push(['_trackPageview']); // ga('send', 'pageview');
_gaq.push(['_trackPageLoadTime']); // This has been deprecated and is a default feature in UA


More info about page load timing can be found here: developers.google.com/analytics/devguides/collection/analyticsjs/user-timings

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme