def gserve(environ, start_response):    
    try:
        response = track_page_view(environ)
    except Exception, e:
        print e
        start_response("503 Service Unavailable", [])
        return ["<h1>Exception loading GA code</h1><p>%s</p>" % str(e)]
    start_response(response['response_code'], response['response_headers'])
    return [response['response_body']]
dataset/ETHPy150Open b1tr0t/Google-Analytics-for-Mobile--python-/ga_mobile_server.py/gserve/original