title: Tracking to Google Analytics from python
body: <p>I'm trying to track GA events from python backend for ecommerce analysis. The way it's written <a href="https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#required" rel="nofollow" title="in the official documentation">in the official documentation</a>, that is sending a post request, nothing shows up, I still have zero visitors in the dashboard, but google replies with 200 and a GIF.</p>
  
  <p>In this example I'm sending a pageview, which obviously makes no sense doing from the backend, but it's simple enough for debugging.</p>
  
  <p>This is my code:</p>
  
  <pre><code>import requests
  
  payload = {
      'v': 1,
      'tid': 'UA-XXXXXX-Y',
      'cid': 555,
      't': 'pageview',
      'dp': '/home',
  }
  print 'sending to GA...'
  r = requests.post("http://www.google-analytics.com/collect", data=payload)
  if r.ok:
      print 'ok'
  else:
      print ':('
  </code></pre>
  
  <p>I have disabled all filters in GA.</p>