[英]Google analytics custom dimensions
i'm currently trying to add a custom dimension to google analytics. 我目前正在尝试向Google Analytics(分析)添加自定义维度。 The goal is to be able to have reports on what user did with their client_id.
目标是能够获得有关用户对其client_id所做的操作的报告。 So i've added a "client_id" custom dimension in Admin->property Name: client_id scope: hit Active : true
因此,我在Admin->属性名称中添加了“ client_id”自定义维度:client_id范围:hit Active:true
Then in my code just after the head i add : 然后在我的代码中紧随头部之后添加:
gtag('config', 'UA-133344089-1', {
'custom_map': {'dimension1': 'client_id'}
});
// Sends an event that passes 'client_id' as a parameter.
gtag('event', 'client_id', {'client_id': 12});
But after that in a custom report where i add Metric group : pageviews And Dimension Drilldowns : client_id type:explorer 但是之后,在自定义报告中,我在其中添加了Metric组:综合浏览量和维度明细:client_id类型:explorer
I can then see the data from yesterday, but can't check the data of today and be sure i've send the client_id correctly. 然后,我可以查看昨天的数据,但无法检查今天的数据,并确保我已正确发送client_id。
Is there any way to check that in real time, so i don't have to wait for tomorrow to check if i get the client_id in Google Analytics ? 有没有办法实时检查,所以我不必等明天检查我是否在Google Analytics(分析)中获得了client_id? Also is this the good way to implement custom dimension to be able to see activities of each client (for exemple having a reporter with : Client_id:12, pageviews:20) ?
这也是实现自定义维度以查看每个客户端活动的好方法(例如,具有以下报告者的示例:Client_id:12,pageviews:20)?
Is there any way to check that in real time, so i don't have to wait for tomorrow to check if i get the client_id in Google Analytics ?
有没有办法实时检查,所以我不必等明天检查我是否在Google Analytics(分析)中获得了client_id?
The real-time api does not include custom dimensions and metrics. 实时api不包括自定义维度和指标。
I can then see the data from yesterday, but can't check the data of today and be sure i've send the client_id correctly.
然后,我可以查看昨天的数据,但无法检查今天的数据,并确保我已正确发送client_id。
The standard reports take between 24 - 48 hours before they complete processing you will need to wait until then before you can check it. 标准报告需要24到48小时才能完成处理,您需要等到那时才能检查它。
Also is this the good way to implement custom dimension to be able to see activities of each client (for exemple having a reporter with : Client_id:12, pageviews:20) ?
这也是实现自定义维度以查看每个客户端活动的好方法(例如,具有以下报告者的示例:Client_id:12,pageviews:20)?
This should work fine just remember that you will need to send it on all requests. 只要记住您需要在所有请求上发送它,它就可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.