سؤال

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?

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top