Firebase 分析 &GTM 追踪 [英] Firebase Analytics & GTM Tracking

查看:35
本文介绍了Firebase 分析 &GTM 追踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是关于为什么 Google Analytics Firebase 需要 GTM.关于这个问题有一个类似的帖子,但它与

我根本不是 GTM 专家,所以除非您想:

  • 进行更高级的 3rd 方广告跟踪,
  • 将事件发送到您自己的数据仓库,
  • Basic GA 中的事件与 Firebase 的 GA 中的事件相同

如果无论如何必须首先直接在代码库中实现 Firebase Analytics 事件,我看不到 GTM 的直接影响.

我的问题:

  • 在代码库中的每个按钮上显式添加自定义 Firebase 事件之前,是否可以从 GTM 中设置自定义事件跟踪?
  • 如果是的话,有人可以分享这个用于 Firebase 实现的双 GTM 和 GA 的实际示例吗?

谢谢!

解决方案

以下是为什么有人将 GTM 与 Google Analytics for Firebase 结合使用的主要原因.

  • GTM 是 Google Analytics 和 Google Analytics for Firebase 之间的桥梁.如果您希望 Firebase 数据进入相同的 GA 属性,则 GTM 是唯一的选择.
  • GTM 拦截 Firebase 事件.如果开发者希望通过修改当前事件来有效利用 Firebase 框架限制的 500 个事件(如果它们要用于未来的其他目的),这将为开发者带来优势.
  • 有关自定义事件的问题的答案来自添加事件"标签类型.添加事件用于从源事件创建第二个事件.例如,如果您已经在记录按钮点击次数,但还想将特定按钮上的按钮点击视为自定义事件,您可以将标签设置为添加事件"标签,并在按钮点击时触发它事件发生时参数与特定按钮名称匹配.

This question is about why one would need GTM for Google Analytics Firebase. There is a similar post on this question, but it has to do with the HOW. I am looking for the reason WHY one would want to implement GTM alongside the already powerful Google Analytics for Firebase.

In May 2017, "Firebase Analytics" was renamed to "Google Analytics for Firebase". This should not be confused with "Google Analytics" for mobile apps (legacy).

Historically, GTM was used for websites and web-apps, where one can paste the GTM snippet and "listen" for a class/id and then, for example through a tag, bind an event to that specific class/id, which would fire when clicked. This is the point where it becomes a bit confusing... I thought one would be able to remotely implement a custom event in GTM, but as far as I understand, GTM works only in parallel after the Firebase custom event has been implemented at the specific point where you want to track the event (i.e. button).

  • "Google Tag Manager uses Firebase Analytics' events, parameters, and user properties to trigger and build tags you've configured in the Google Tag Manager web interface. In this sense, your Firebase Analytics implementation acts as your data layer" (source),
  • "Firebase event name variables, Firebase event parameter variables, and other variables are used to set up triggers. Trigger conditions are evaluated whenever you log a Firebase event. By default, Firebase Analytics events" (source).

GTM has always been marketed as "remotely configure your tracking", but unless I am missing something, it seems that you in anyway need your developer team to do a custom implementation on each and every event you want to track and thereafter do the GTM set-up for extra benefits, like:

  • Configure variables in Tag Manager: i.e. Change an event's parameter value after the app has been deployed, without the need to re-upload your app to the app/play store.
  • Modify and block Firebase Analytics events (assuming those custom events have already been implemented).
  • Fire Tags: i.e. Send the exact same events to Basic GA (that were triggered for GA Firebase), if you want to use that as well.
  • Preview, debug, and publish your container (Note: GA for Firebase has already Debugview for debugging).

I have however seen in the GTM console that one can "Add Event" for the Google Analytics (Firebase), but I have not really seen any solid examples out there of how it works.

I am not a GTM expert at all, so unless you want to:

  • Do more advanced 3rd party ad-tracking,
  • Send events to your own data-warehouse,
  • Have the same events in Basic GA as in GA for Firebase

I don't see the direct impact that GTM holds if one has to first implement the Firebase Analytics events directly in the code-base in anyway.

My Questions:

  • Can one set up custom event tracking from within GTM before explicitly adding custom Firebase events at each and every button within the code-base ?
  • If yes, can someone please share actual examples of this dual GTM and GA for Firebase implementation ?

Thanks!

解决方案

Here are the primary reasons as to WHY someone would use GTM with Google Analytics for Firebase.

  • GTM acts as a bridge in between Google Analytics and Google Analytics for Firebase. If you want the Firebase data to go in same GA property then GTM is the only option.
  • GTM intercepts Firebase events. This gives an advantage to the developer if he/she want to make efficient use of the 500 events restricted by Firebase framework by modifying the current events if they are to be used for other purpose going forward.
  • Answer for you question about custom event come from the "Add Event" tag type. Add Event is used when you want to create a second event from the source event. For example, if you're already logging button clicks, but want to treat a button click on a specific button as a custom event as well, you would setup a tag as an 'Add Event' tag, and trigger it when a button click event happened with parameters matching the specific button name.

这篇关于Firebase 分析 &GTM 追踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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