英文:
how do I get event label and event category parameters from event click in google analytics 4?
问题
I send event_label and event_category parameters in the click event and I can see this data in the Realtime section, but I am not able to see this information in engagement nor in reports.
So, my question is, if this data is getting stored or I lose this data?, Is there a way to retrieve the historical data?
This is the way I send the parameters with the click event
window.gtag("event", 'click', {
event_category: category,
event_label: label,
});
I already create a custom dimension for event_label but I have to wait around 48 hours to be able to use it in reports and see if I have the historical data.
英文:
I send event_label and event_category parameters in the click event and I can see this data in the Realtime section, but I am not able to see this information in engagement nor in reports.
So, my question is, if this data is getting stored or I lose this data?, Is there a way to retrieve the historical data?
This is the way I send the parameters with the click event
window.gtag("event", 'click', {
event_category: category,
event_label: label,
});
I already create a custom dimension for event_label but I have to wait around 48 hours to be able to use it in reports and see if I have the historical data
答案1
得分: 1
通用分析(Universal Analytics)与GA4完全不同。
UA中,默认情况下,事件会记录以下内容:
由实际调用本身进行记录:
gtag('event', <action>, {
'event_category': <category>,
'event_label': <label>,
'value': <value>
});
GA4不提供相同的支持。
如果您希望在GA4中使用event_category和event_label,您需要将它们定义为自定义维度,然后自行设置。这不是开箱即用的功能。
英文:
Universal analytics is completely diffrent then GA4.
Events in UA by default would record
by the actual call themself
gtag('event', <action>, {
'event_category': <category>,
'event_label': <label>,
'value': <value>
});
Ga4 does not offer this same support.
If you want event_category and event_label in GA4 you will need to define them as custom dimensions and then set them yourself. This is not something that will work out of the box.
答案2
得分: 0
I suppose you are talking about GA4 and Not Universal, so you have to create these variables as custom dimensions in your analytics.google profile, and it takes 48 hours to get effected, before this time, you may get the result value as not set.
Remember, once created a custom dimension it is not possible to change the Event parameter.
英文:
I suppose you are talking about GA4 and Not Universal, so you have to create these variables as custom dimensions in your analytics.google profile, and it takes 48 hours to get effected, before this time, you may get the result value as not set.
Remember, once created a custom dimension it is not possible to change the Event parameter.
Then select "Create custom dimensions"
and enter the info
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论