如何提取Firebase用户参数并通过Google跟踪代码管理器发送给Google Analytics(分析)? [英] How to extract firebase user parameter and send to google analytics via google tag manager?

查看:82
本文介绍了如何提取Firebase用户参数并通过Google跟踪代码管理器发送给Google Analytics(分析)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出如何从firebase中提取非常常见且自动生成的用户属性"first_open_time"并将其发送到GA.

I'm trying to figure out how to extract the very common and auto generated user property, "first_open_time" from firebase and send to GA.

这是在移动应用程序(iOS/Android)的上下文中-我已经在很早之前实现了代码管理器sdk,firebase sdk,并且可以成功地将我们从ios和android客户端生成的任何事件发送到firebase,并使用标签管理器将其发送给ga.但是,无论何时,我都会尝试对任何免费的firebase事件(例如user_engagement事件或screen_view事件)执行相同的操作-与我从客户端创建的事件一样,GA中也不会显示任何内容.因此,现在我不是在尝试从firebase中取消free事件,而是尝试仅退出firebase自动设置的first_open_time用户属性.

This is in the context of a mobile app (iOS/Android) - I have already implemented tag manager sdk, firebase sdk quite some time ago and can successfully send any events that we generate from the ios and android clients to firebase, and use the tagmanager to send them to ga. However, anytime I try to do the same with any of the free firebase events, such as user_engagement event or screen_view event - nothing ever shows up in GA the same as when its an event I created from the client. So instead of trying to pluck out the free event from firebase now i'm trying to pluck out just the first_open_time user property that is automatically set by firebase.

显示用户属性的Firebase调试视图的屏幕截图

我在与Firebase兼容的容器中创建了一个gtm变量:first_open_time,它是Firebase用户属性.

I created a gtm variable: first_open_time that is a Firebase User Property, in a Firebase compatible container.

gtm变量定义的屏幕截图

我创建了一个gtm触发器,该触发器监视名为"customEvent"的事件,并且确实可以正确触发该事件.

I created a gtm trigger that watches for an event named "customEvent" and this does get triggered properly.

我创建了一个gtm标签,将Firebase用户属性first_open_time放入GA中已定义的customDimension中.

I created a gtm tag that puts the Firebase User Property first_open_time into a customDimension already defined in GA.

Google跟踪代码管理器的屏幕截图-跟踪代码定义

但这永远不会发送该特定字段.我明确定义的所有其他属性都会通过,但是firebase的免费事件或免费参数都不会通过.

But this never sends this particular field. All the other properties that I've explicitly defined come through, but none of the free events or free parameters from firebase DO NOT come through.

针对该新自定义维度的GA屏幕快照,没有结果

推荐答案

我认为这实际上是不可能的.例如,对于first_open_time,一种解决方法是存储首次打开应用程序时的纪元时间.然后,使用CustomVariableProvider检索它.它可以随时在GTM中使用.

I don't think this is actually possible. Regarding the first_open_time for example, a work-around is to store the epoch time when the app is opened at the first time. Then, to retrieve it using a CustomVariableProvider. It would become available anytime in GTM.

  • https://developers.google.com/tag-manager/ios/v5/advanced-config
  • https://developers.google.com/tag-manager/android/v5/advanced-config

这篇关于如何提取Firebase用户参数并通过Google跟踪代码管理器发送给Google Analytics(分析)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆