如何从Google Analytics 4中的事件点击获取事件标签和事件类别参数?

huangapple go评论63阅读模式
英文:

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中,默认情况下,事件会记录以下内容:

如何从Google Analytics 4中的事件点击获取事件标签和事件类别参数?

由实际调用本身进行记录:

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

如何从Google Analytics 4中的事件点击获取事件标签和事件类别参数?

by the actual call themself

gtag(&#39;event&#39;, &lt;action&gt;, {
  &#39;event_category&#39;: &lt;category&gt;,
  &#39;event_label&#39;: &lt;label&gt;,
  &#39;value&#39;: &lt;value&gt;
});

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.
如何从Google Analytics 4中的事件点击获取事件标签和事件类别参数?

Then select "Create custom dimensions"
and enter the info

如何从Google Analytics 4中的事件点击获取事件标签和事件类别参数?

huangapple
  • 本文由 发表于 2023年5月17日 08:11:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76267802.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定