2.4K members online now
Discuss discrepancies between AdWords and Google Analytics data, linking AdWords and Google Analytics, importing your goals/Ecommerce transactions into AdWords, and setting up Remarketing
Guide Me

the page reloads with certain interval

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
The problem as we know is that GA script causes the page reloads with certain interval. 
I did not find any hints in Google for this issue so far.

Another suggestion is to try to understand how this GA script can do it?
We know the problem not happened if we removed the script.

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-0070008-29']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
1 Expert replyverified_user

the page reloads with certain interval

Top Contributor
# 2
Top Contributor



You are using the outdated classic analytics code.

Please install the Universal Analytics tracking code instead from Admin -> Property -> Tracking Info -> Tracking Code.


Let me know if you are still having problems when using the new script.


Arnold Majlath, Google Analytics Top Contributor
Circle Me On Google+ | Visit me @ Redfly Digital

the page reloads with certain interval

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

I added new code, but it seems the issue still exists but now resubmit interval is 11 min. I believe that there are no pages that suspend for such period of time and we might proceed with new version of script? But it still puzzle my how these JS code forces to reload the page?


the page reloads with certain interval

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

I added this, but

still creates the page refresh with 10 min time span now.


(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', '', 'ga');

ga('create', 'UA-XXXXX-Y', 'auto');
ga('send', 'pageview');