我正尝试按照此链接中的说明将批量匹配发送给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(分析)时得到的结果的一小部分。而且我的数据没有发送到分析。我在交易报告中没有找到任何点击。

我想念什么吗?

最佳答案

您需要删除斜杠。

端点为www.google-analytics.com/batch

关于google-analytics - Google Analytics(分析)测量协议(protocol)批量发送不起作用,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43070323/

10-16 22:13