简体   繁体   English

android 的 GAv4:是否可以覆盖 deviceCategory 值?

[英]GAv4 for android: can deviceCategory value be overriden?

I need to manually override the value that Google analytics sends for the deviceCategory predefined user dimension (let's say that instead of "mobile", I need It to be "android phone").我需要手动覆盖 Google Analytics 为deviceCategory预定义用户维度发送的值(假设不是“移动”,我需要它是“android 手机”)。 But I couldn't find anywhere in the SDK documentation if this is possible or not, and how to do it, other than using a custom dimension, which is not what I want.但是我在 SDK 文档中找不到任何地方,如果这可能与否,以及如何做到这一点,除了使用自定义维度,这不是我想要的。

Is this even possible?这可能吗?

You can definitely override some of the default dimensions as shown here You could probably follow the same algo to override other dimensions.您绝对可以覆盖一些默认维度,如此处所示您可能会遵循相同的算法来覆盖其他维度。

Another thing I'd try is looking at the.network request and seeing if deviceCategory can be overriden by setting it as an event propery.我要尝试的另一件事是查看 .network 请求并查看是否可以通过将deviceCategory设置为事件属性来覆盖它。

Finally, you can always override any field if you use GTM inbetween, but it's kind of an overkill.最后,如果您在中间使用 GTM,您总是可以覆盖任何字段,但这有点矫枉过正。 You don't want to use it just to slightly shift the field value.您不想仅仅使用它来稍微改变字段值。

I would generally suggest either not touching it at all if you're just renaming it for the comfort of the analyst or using a custom dimension/event propery to track it if it's a separate datapoint.如果您只是为了分析师的舒适而重命名它,或者如果它是一个单独的数据点,我通常建议您根本不碰它,或者使用自定义维度/事件属性来跟踪它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法让 Firestore 从 Android Studio 中的集合返回字段值 - Can't get Firestore to return a field value from a collection in Android Studio 将值从 Firestore 加载到 android studio - Loading value from Firestore to android studio s3-cloudformation-template.json 上的本地更改在放大推送时被覆盖 - Local changes on s3-cloudformation-template.json are overriden on amplify push Firebase:如何检查用户身份验证是否被其他提供商覆盖? - Firebase: How to check if a user auth was overriden by another provider? 我们可以在 android 中向 Firestore 发出多个请求吗 - Can we make several requests with Firestore in android Android 上的 FCM 通知可以覆盖之前的通知吗? - Can FCM notification on Android overwrite previous one? Android:一个 Android 应用程序可以有多个 FirebaseMessagingServices - Android: Can an Android app have multiple FirebaseMessagingServices 从对象列表中获取值 Firebase Android Studio - Get value from list of objects Firebase Android Studio 如何获取 Firebase 值并在 Android 应用程序上显示图像 - How to get Firebase Value and display image on Android apps 使用 Firebase 和 Android 时,如何通过 Android 中的方法调用更改数组值 - How to change an array value with a method call in Android when using Firebase and Android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM