Firebase Analytics& GTM跟踪 [英] Firebase Analytics & GTM Tracking

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

问题描述

这个问题是关于Google Analytics(分析)Firebase需要GTM的原因。在这个问题上有一个类似的帖子,但它与

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


  • 进行更高级的第三方广告跟踪,您自己的数据仓库中,
  • 在基本GA中与Firebase中的GA具有相同的事件



如果必须首先直接在代码库中实施Firebase Analytics事件,我不会看到GTM持有的直接影响。



我的问题


  • 在代码库中的每个按钮上明确添加自定义Firebase事件之前,从GTM内部启用自定义事件跟踪? 如果是的话,有人可以分享这个双GTM和GA for Firebase实施的实际例子吗?



谢谢!

解决方案

以下是为什么有人会将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 Analytics& GTM跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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