Skip to content

Instantly share code, notes, and snippets.

@MarkEdmondson1234
Created November 23, 2014 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkEdmondson1234/b607ee5c9959421a1ac8 to your computer and use it in GitHub Desktop.
Save MarkEdmondson1234/b607ee5c9959421a1ac8 to your computer and use it in GitHub Desktop.
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