Skip to content

Instantly share code, notes, and snippets.

@kkubasik
Last active August 29, 2015 14:00
Show Gist options
  • Save kkubasik/d7866448038e78cc3305 to your computer and use it in GitHub Desktop.
Save kkubasik/d7866448038e78cc3305 to your computer and use it in GitHub Desktop.
Output of Sample Google Analytics Measurement Protocol Request
POST /collect HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate, compress
Content-Length: 208
Content-Type: application/json; charset=utf-8
Host: www.google-analytics.com
User-Agent: HTTPie/0.8.0
{
"cd2": "HZDG_ID",
"cid": "35009a79-1a05-49d7-b876-2b884d0f825b",
"cm2": "35009a79-1a05-49d7-b876-2b884d0f825b",
"ea": "Action",
"ec": "Category",
"el": "Potato",
"t": "event",
"tid": "UA-490831-1",
"v": "1"
}
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Alternate-Protocol: 80:quic
Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate
Content-Length: 35
Content-Type: image/gif
Date: Thu, 01 May 2014 20:12:58 GMT
Expires: Mon, 07 Aug 1995 23:30:00 GMT
Last-Modified: Sun, 17 May 1998 03:00:00 GMT
Pragma: no-cache
Server: Golfe2
X-Content-Type-Options: nosniff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment