为什么UserID报告为匿名数据?

时间:2014-06-22 19:30:06

标签: google-analytics google-analytics-api google-analytics-v4

我根据guide设置了Google Analytics分析用户ID扩展,这是我的代码:

ga('create', 'UA-10303525-4', { 'userId': current.user.longid });
ga('send', 'pageview', '/purchase/invoicing');

三天后,所有登录的用户数据仍然作为匿名数据报告,并且未显示在userID注册的配置文件中。是什么导致这种情况,是否有任何方法可以调试UserId,如果设置了userID就会进行调整?

这是我的http-get(uid参数是正确的):

:host:www.google-analytics.com
:method:GET
:path:/collect?v=1&_v=j22&a=1163329869&t=%2Fhome&_s=1&dl=https%3A%2F%2Fwww.zenconomy.se%2F&ul=en-us&de=UTF-8&dt=Hem%20-%20Zenconomy&sd=24-bit&sr=1280x800&vp=1152x702&je=1&fl=14.0%20r0&_utma=114769036.1265230233.1399066225.1403176480.1403201211.129&_utmz=114769036.1403201211.129.40.utmcsr%3Dfeedly.com%7Cutmccn%3D(referral)%7Cutmcmd%3Dreferral%7Cutmcct%3D%2F&_utmht=1403465598782&_u=MACCAAQ~&cid=1265230233.1399066225&uid=4fe4eb106f185&tid=UA-10303525-4&z=695256044
:scheme:https
:version:HTTP/1.1
accept:image/webp,*/*;q=0.8
accept-encoding:gzip,deflate,sdch
accept-language:sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2,nb;q=0.2,fr;q=0.2
cache-control:no-cache
pragma:no-cache
referer:https://www.zenconomy.se/
user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Query String Parametersview sourceview URL encoded
v:1
_v:j22
a:1163329869
t:/home
_s:1
dl:https://www.zenconomy.se/
ul:en-us
de:UTF-8
dt:Hem - Zenconomy
sd:24-bit
sr:1280x800
vp:1152x702
je:1
fl:14.0 r0
_utma:114769036.1265230233.1399066225.1403176480.1403201211.129
_utmz:114769036.1403201211.129.40.utmcsr=feedly.com|utmccn=(referral)|utmcmd=referral|utmcct=/
_utmht:1403465598782
_u:MACCAAQ~
cid:1265230233.1399066225
uid:4fe4eb106f185
tid:UA-10303525-4
z:695256044
Response Headers
access-control-allow-origin:*
age:242993
alternate-protocol:443:quic
cache-control:private, no-cache, no-cache=Set-Cookie, proxy-revalidate
content-length:35
content-type:image/gif
date:Fri, 20 Jun 2014 00:03:25 GMT
expires:Mon, 07 Aug 1995 23:30:00 GMT
last-modified:Sun, 17 May 1998 03:00:00 GMT
pragma:no-cache
server:Golfe2
status:200 OK
version:HTTP/1.1
x-content-type-options:nosniff

1 个答案:

答案 0 :(得分:0)

Kristoffer,我认为这是有目的的,因为Dimension/Metric Reference中也没有提到UserID。

您可以轻松地将UserID(或cliend ID)设置为CustomDimension。即使使用Google Tag Manager,也可轻松完成此操作。

希望这有帮助!