Mobile app version of vmapp.org
Login or Join
Kimberly868

: Why are there 50% fewer pageviews and 130% bounce rate increase when upgrading to Google Analytics Universal? My old ga.js code is: var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXX-1']);

@Kimberly868

Posted in: #GoogleAnalytics #UniversalAnalytics #Upgrade

My old ga.js code is:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-1']);
_gaq.push(['_setDomainName', 'example.com']);
_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);
})();


after I upgrade to new analytics.js code like this:

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

ga('create', 'UA-XXXXXX-1', 'auto');
ga('send', 'pageview');


I notice that my pageview is decreasing about 30% ~ 50%,
and bounce rate is increasing about 130%

the obvious difference syntax between old and new is:

_gaq.push(['_setDomainName', 'example.com']);


As far as I know, actually there is no sub domain site,
I guess maybe the old analytics data is incorrect,
and the new analytics data is correct.

Is there anyone can explain why the analytics data change so big
or what am I doing wrong?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kimberly868

1 Comments

Sorted by latest first Latest Oldest Best

 

@Voss4911412

Make sure if you are upgrading from the ga.js to analytics.js that you add your domain to the Property's Referral Exclusion List.
It is done by default for new properties but needs to be done manually for GA Properties that existed prior to the Google changeover to analytics.js

With analytics.js a change in source during a session will end the current user session and start a new one. Self referrals may be a reason for some of the issues you are seeing.

If there were any virtual pageviews tracked with ga.js then they will need to be ported over to the analytics.js syntax to continue tracking.

eta, there is also an upgrade guide available in the dev docs, in the event you need to also upgrade event tracking, custom variables and so forth developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme