Question

I have script that use Urllib to open webpage in which I installed google analytics. My question is why if I execute a script there is no visits shown on GA?

Était-ce utile?

La solution

Google Analytics script is a JavaScript code and your urllib code does not evaluate it, so this view does not trigger GA.

You can trigger it calling directly the __utm image, but it is not exactly what you want. This way, you have to set all data and send it to GA instead of just trigger some client side code. Check it here: https://webmasters.stackexchange.com/questions/15230/the-simplest-way-to-track-google-analytics-without-javascript

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top