gpt4 book ai didi

google-analytics - 谷歌通用分析事件发送但未被分析接收

转载 作者:行者123 更新时间:2023-12-03 15:25:30 24 4
gpt4 key购买 nike

我在我的网站上使用谷歌通用分析。尽管 POST 请求似乎正确发送,但我的分析帐户中没有跟踪事件。

这是发布请求(网址和分析 ID 被屏蔽)

Request URL:http://www.google-analytics.com/collect
Request Method:POST
Status Code:200 OK
Request Headersview source
Accept:application/json, text/javascript, */*; q=0.01
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:120
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Host:www.google-analytics.com
Origin:http://www.xxxxxxxx.com
Referer:http://www.xxxxxxxx.com/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
Form Dataview sourceview URL encoded
v:1
tid:UA-xxxxxxxxx-1
cid:3E1FA9FE-28B3-7032-1714-5083DD155FCF
t:click
ec:link
ea:outbound_link
el:startpage
ev:headline
Response Headersview source
Access-Control-Allow-Origin:*
Cache-Control:private, no-cache, no-cache=Set-Cookie, proxy-revalidate
Connection:keep-alive
Content-Length:35
Content-Type:image/gif
Date:Fri, 10 May 2013 13:25:44 GMT
Expires:Mon, 07 Aug 1995 23:30:00 GMT
Last-Modified:Sun, 17 May 1998 03:00:00 GMT
Pragma:no-cache
Server:GFE/2.0
Via:1.0 non_disclosed:3128 (squid)
X-Cache:MISS from non_disclosed
X-Cache-Lookup:MISS from non_disclosed:3128
X-Content-Type-Options:nosniff

有谁知道这里发生了什么?谢谢!

杰西

更新

我试图首先通过 jquery 的 $.post 方法发送请求。你可以看到上面的结果。 Google Analytics 未跟踪任何内容。

现在我切换到这种方法,如analytics.js 开发人员指南中所述
function trackOutboundLink(link, event_hittype, event_category, event_action, event_value) {
ga('send', event_hittype, {
'clientId' : clientId,
'eventCategory' : event_category,
'eventAction' : event_action,
'eventLabel' : link.href,
'eventValue' : event_value,
'hitCallback' : function () {
// document.location = link.href;
}
});

window.open(
link.href,
'_blank'
);
}

生成的请求如下所示:
Request URL:http://www.google-analytics.com/collect?v=1&_v=j8&a=217518556&t=event&dl=http%3A%2F%2Fwww.mywebsite.de%2F&ul=de&de=UTF-8&dt=Foosd=24-bit&sr=1440x900&vp=1439x747&je=1&fl=11.7%20r700&ec=OutboundLinkClick&ea=Startpage&el=http%3A%2F%2Ftest.de&ev=Headline&_u=OCC~&cid=283560406.1367606414&tid=UA-XXXXXXXX-1&z=496696042
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Host:www.google-analytics.com
Referer:http://www.mywebsite.de/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31
Query String Parametersview sourceview URL encoded
v:1
_v:j8
a:217518556
t:event
dl:http://www.mywebsite.de/
ul:de
de:UTF-8
dt:Foo
sd:24-bit
sr:1440x900
vp:1439x747
je:1
fl:11.7 r700
ec:OutboundLinkClick
ea:Startpage
el:http://test.de
ev:Headline
_u:OCC~
cid:283560406.1367606414
tid:UA-XXXXXXXX-1
z:496696042
Response Headersview source
Access-Control-Allow-Origin:*
Age:120360
Cache-Control:private, no-cache, no-cache=Set-Cookie, proxy-revalidate
Content-Length:35
Content-Type:image/gif
Date:Thu, 16 May 2013 00:10:08 GMT
Expires:Mon, 07 Aug 1995 23:30:00 GMT
Last-Modified:Sun, 17 May 1998 03:00:00 GMT
Pragma:no-cache
Server:GFE/2.0
X-Content-Type-Options:nosniff

在新窗口中打开目标链接时,事件会正确触发。请求的状态为 200。

你猜怎么着,我没有在谷歌分析中跟踪任何事件。我仔细检查了 UA 代码,我无法想象分析中有任何过滤器,因为我没有设置。

该方法从昨天(24小时)开始上线。我不知道这里有什么问题。

最佳答案

我确实看到的一件事是 t:click .如果这是一个事件,它会显示 t:event
https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#event

关于google-analytics - 谷歌通用分析事件发送但未被分析接收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16483640/

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