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