Google Analytics Measurement Protocol Batch Send Not Working -


i'm trying send batch hits google analytics measurement protocol, following directions link:

https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide

my post data follows:

post /batch/ http/1.1 host: www.google-analytics.com cache-control: no-cache  v=1&tid=ua-xxxxxxxx-xx&cid=57409376.1490567764&t=transaction&ti=21594451&tr=29.4&tt=0.0&ts=0.0&cm4=7.350000000000003&cu=brl&pa=purchase&pr1id=58d279b0e4b069eb07461b&pr1nm=credito&pr1ca=divers%c3%a3o&pr1qt=3&pr1cc=&pr1pr=9.8&pr1cm2=0.01&cd12=22882 v=1&tid=ua-xxxxxxxx-xx&cid=742537347.1490876083&t=transaction&ti=21594452&tr=24.9&tt=0.0&ts=0.0&cm4=4.979999999999997&cu=brl&pa=purchase&pr1id=58cadfa0e4b094f81b742c&pr1nm=show&pr1ca=divers%c3%a3o&pr1qt=1&pr1cc=&pr1pr=24.9&pr1cm2=0.01&cd12=28439 

when send google analytics, returns me html code, this:

<!doctype html> <html class="google mmfb" dir="ltr" lang="en">     <head>         <script>     (function(h){h.classname=h.classname.replace(/\bgoogle\b/,'google-js')})(document.documentelement) </script>     <meta charset="utf-8">     <meta content="initial-scale=1, minimum-scale=1, width=device-width" name="viewport">     <title>   google analytics solutions - marketing analytics &amp; measurement – google </title> 

this fraction of result when send batch post analytics. , data isn't sent analytics. see no hits in transaction report.

am missing something?

you need remove ending slash.

the endpoint www.google-analytics.com/batch


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -