英文:
Google analytics event parameters not working
问题
我已初始化了一个自定义事件,以跟踪我的添加到购物车事件在Google Analytics中。当我在Google标签管理器预览模式下尝试并在Google Analytics调试模式下检查事件时,所有事件参数都能正确触发。但是,当我在发布Google标签管理器更改后尝试相同的流程时,Google Analytics没有捕获任何事件参数。但是,它会捕获不带任何事件参数的添加到购物车事件。有人知道如何解决这个问题吗?
英文:
I have initialized a custom event to track my add to cart event in the google analytics. All the event parameters getting properly triggered when I try it using the google tag manager preview mode and check the events in google analytics debug mode but when I try the same flow after publishing the google tag manager changes, google analytics didn't pick up any event parameters. However it pickups the add to cart event without any event parameters. Does anyone know a way to fix this issue?
答案1
得分: 1
以下是翻译好的部分:
"参数需要与自定义维度进行映射,以便在报告中使用它们。设置完成后,您可以按需要使用该维度。映射在GA4界面中完成。下面是实现此操作的步骤:
您可以在官方文档中查看整个映射过程。以下是相关信息的粘贴部分:
> - 在Google Analytics中,点击管理。
> - 确保您在正确的账户和属性中。
> - 点击自定义定义。
> - 在自定义维度选项卡中,点击创建自定义维度。
> - 在维度名称中,输入新维度的唯一名称。名称中不能使用连字符,但可以使用下划线和空格。
> - 在范围中,选择事件。
> - 在事件参数中,输入事件参数的名称。然后点击保存。
提示:如果您使用的是GA4免费版,需要等待几个小时才能在映射列表中看到您的参数名称。
英文:
The parameters are required to be mapped with custom dimensions in order to use them in reporting. Once set, you can use that dimension as required. The mapping is done in GA4 UI. Steps to achieve the same is added below
You can see the entire mapping process in the official docs. Pasting relevant information below:
> - In Google Analytics, click Admin.
> - Make sure you are in the correct account and property.
> - Click Custom Definitions.
> - In the Custom Dimensions tab, click Create custom dimensions.
> - In the Dimension name, enter a unique name for the new dimension. You can't use hyphens in the name, but you can use underscores and
> spaces instead.
> - In Scope, select Event.
> - In Event parameter, enter the name of the event parameter. Click Save.
Tip: If you are using GA4 free, you need to allow a few hours to see your paramter_name in the list to be mapped.
答案2
得分: 0
相同的问题发生在我身上,只需查看以下链接中的问题:https://support.google.com/analytics/thread/225245799?hl=en&sjid=10197652399888485580-AP
版本
firebase_core: ^2.14.0
firebase_analytics: ^10.4.3
firebase_crashlytics: ^3.3.3
自测
步骤1
# 确保您的设备已连接
adb devices
adb shell setprop debug.firebase.analytics.app xxxxxx
adb shell setprop debug.firebase.analytics.app .none.
步骤2
打开 Google Analysis DebugView
英文:
The same issue with me, just see the issue in the Link: https://support.google.com/analytics/thread/225245799?hl=en&sjid=10197652399888485580-AP
Version
firebase_core: ^2.14.0
firebase_analytics: ^10.4.3
firebase_crashlytics: ^3.3.3
Self Test
step1
# make sure your device has connected
adb devices
adb shell setprop debug.firebase.analytics.app xxxxxx
adb shell setprop debug.firebase.analytics.app .none.
step2
open Google Analysis DebugView
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论