Created
November 23, 2014 13:03
-
-
Save MarkEdmondson1234/b607ee5c9959421a1ac8 to your computer and use it in GitHub Desktop.
From https://github.com/MarkEdmondson1234/ga-get-to-post/blob/master/main.py and blogpost http://markedmondson.me/e-mail-open-rate-tracking-with-google-analytics-measurement-protocol-demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LandingPage(webapp2.RequestHandler): | |
"""Example page where content is - utm parameters should be used plus cid which will link the impression and visit """ | |
def get(self): | |
cid = cgi.escape(self.request.get('cid')) | |
clientId = getUniqueClientId(cid) | |
print clientId | |
template_values = {'clientId' : clientId} | |
template = JINJA_ENVIRONMENT.get_template('landing-page.html') | |
self.response.write(template.render(template_values)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment