1
Use the Google Analytics
on my website however it has an anomalous behavior:
- When I open 2 to infinite pages of my site in a single browser is computed as a single active user.
- When I open 2 up to infinite pages of my site in 2 browsers are computed as 2 active users.
- When closing pages is not updated the number of active users on the site.
- When I leave the tabs open but without any update or redirect the number of online users is updated to 0.
I am using a code from google Analytics asynchronous and optimized (I put in an external . js file (which contains other javascript functions, however there is no interfrencia between variables)):
var _gaq = [['_setAccount', 'UA-63633330-1'], ['_trackPageview']];
(function(d, t){
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src = 'http://www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
}(document, 'script'));
What is the reason for this anomalous behavior or this is the appropriate behavior?
Site link that provided the optimized version of Google Analytics: https://mathiasbynens.be/notes/async-analytics-snippet
I can give more details if necessary. just ask in the comments =D
– Ricardo
Ricardo I just didn’t understand which of the behaviors is anomalous.
– Guilherme Nascimento
@Guilhermenascimento In my view all three, or I misinterpreted and these are the normal bodies?
– Ricardo