Google Analytics测量协议批量发送不起作用

时间:2017-03-28 13:01:23

标签: google-analytics measurement-protocol

我尝试按照此链接的说明向Google Analytics Measurement Protocol发送批量点击:

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

我的帖子数据如下:

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

当我将此信息发送给Google Analytics时,它会返回HTML代码,如下所示:

<!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>

这是我将批量帖子发送到Google Analytics时得到的结果的一小部分。我的数据没有发送到分析。我在交易报告中看不到任何点击。

我错过了什么吗?

1 个答案:

答案 0 :(得分:0)

您需要删除结尾斜杠。

端点 www.google-analytics.com/batch