gpt4 book ai didi

google-analytics - 谷歌分析测量协议(protocol)批量发送不起作用

转载 作者:行者123 更新时间:2023-12-03 16:51:34 25 4
gpt4 key购买 nike

我正在尝试按照此链接的说明将批量匹配发送到 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>

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

我错过了什么吗?

最佳答案

您需要删除结尾的斜线。

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

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com