I have a Chrome extension and I ran a debug on my analytics code producing a console message of “Exceeded maximum hits per session, aborting hit”. Note that this only happens in production.
I understand why this is happening as there is a limit of about 500 utm requests per session. However, when do these sessions expire? And is there a way to force the session or sessions to expire? I just need to expire these sessions once after an update that resolved some issues.
As the app was experiencing a bug that caused an “over-generating of events” I have resolved this issue and I want to expire all these sessions or know when they will expire.
Any help is greatly appreciated.
_gaq.push processing "_setAccount" for args: "[UA-XXXXXX-X]": ssl.google-analytics.com/u/ga_debug.js:18
_gaq.push processing "_trackPageview" for args: "[]": ssl.google-analytics.com/u/ga_debug.js:18
Track Pageview ssl.google-analytics.com/u/ga_debug.js:18
Exceeded maximum hits per session. Aborting hit.
Personally, I don’t think the 500 requests per session limit should be reached. Maybe your website is over-generating events.
Here are some clues on what could be generating so many events:
(from Google Analytic’s Event Tracking Guide)
And based on the following it appears that a visit lasts from the beginning of the month to the end of the month:
(Based on more background information on sessions, see the Google Analytics Help Center on this topic)
And maybe you could consider changing the session timeout.