0

根据指南,我已经设置了谷歌分析用户 ID 扩展,这是我的代码:

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

三天后,所有登录的用户数据仍被报告为匿名数据,并且不会显示在用户 ID 注册的配置文件中。什么可能导致这种情况,有什么方法可以调试 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
4

1 回答 1

0

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

您可以轻松地将 UserID(或客户 ID)设置为 CustomDimension。即使使用Google Tag Manager也可以轻松完成。

希望这可以帮助!

于 2014-06-27T14:52:41.660 回答