You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Earlier this week I added ga-lite to my website and it worked. Or perhaps it seemed to work, because today it doesn't create a call to www.google-analytics.com. If I replace ga-lite with the Google Analytics JavaScript code, there is a call to www.google-analytics.com.
I do see that the script from cdn.jsdelivr.net loads in both Firefox and Chrome. But there isn't a resulting call to www.google-analytics.com to actually send the data to Google Analytics. (I of course verified that I don't have a browser setting that blocks requests to that address.)
I neither see an error message appearing in the 'Console' of the webdeveloper tools of Firefox and Chrome. (I tried both browsers.)
This issue does not only happen on my localhost test website. Here is a speedtest of Jehna's website that shows a HTTP connection error for the request to www.google-analytics.com. This is another speedtest for the same page, but this time from Melbourne. Here the connection error also shows.
This happens to me in the same browser on the same computer, so I think we can rule out that my computer or browser has trouble connecting to www.google-analytics.com.
The text was updated successfully, but these errors were encountered:
Thanks Jehna, it was indeed the 'do not track' setting. When I disable that option, ga-lite makes a call to www.google-analytics.com as expected.
I got confused here because the regular analytics.js file from Google Analytics themselves doesn't take that setting into consideration. (Which is actually a documented feature, so the project couldn't be doing it better. I just had to actually understand it. 😄 )
Earlier this week I added ga-lite to my website and it worked. Or perhaps it seemed to work, because today it doesn't create a call to
www.google-analytics.com
. If I replace ga-lite with the Google Analytics JavaScript code, there is a call towww.google-analytics.com
.Ga-lite code
Code I tried:
And:
I do see that the script from
cdn.jsdelivr.net
loads in both Firefox and Chrome. But there isn't a resulting call towww.google-analytics.com
to actually send the data to Google Analytics. (I of course verified that I don't have a browser setting that blocks requests to that address.)I neither see an error message appearing in the 'Console' of the webdeveloper tools of Firefox and Chrome. (I tried both browsers.)
This issue does not only happen on my localhost test website. Here is a speedtest of Jehna's website that shows a HTTP connection error for the request to
www.google-analytics.com
. This is another speedtest for the same page, but this time from Melbourne. Here the connection error also shows.I checked Google's Google Analytics status and there were no problems at this time.
Google Analytics
The issue does not happen with this:
For this code I see a call to Google Analytics:
This happens to me in the same browser on the same computer, so I think we can rule out that my computer or browser has trouble connecting to
www.google-analytics.com
.The text was updated successfully, but these errors were encountered: