I am assuming that I a missing something stupid but I can't get the POST to work. Here is what I am sending:
POST /debug/collect HTTP/1.1Host: www.google-analytics.comCache-Control: no-cacheContent-Type: application/x-www-form-urlencodedv=1&tid=UA-59xxxxxx-1&cid=19128xxxxx.14301xxxxx
and here is what I get back:
{
"hitParsingResult": [
{
"valid": false,
"parserMessage": [
{
"messageType": "ERROR",
"messageCode": "VALUE_REQUIRED",
"parameter": "v"
},
{
"messageType": "ERROR",
"messageCode": "VALUE_REQUIRED",
"parameter": "tid"
},
{
"messageType": "ERROR",
"messageCode": "VALUE_REQUIRED",
"parameter": "cid"
}
],
"hit": "GET /debug/collect HTTP/1.1"
}
]
}
If I change it to a GET call and add the data in the query parameters everything works great. I would prefer not to use GET if possible. I have read the docs and I believe I am doing everything correctly so I am at a loss.
Thanks