本文介绍了Analytics for Firebase-使用Google跟踪代码管理器的用户属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否可以使用Google跟踪代码管理器设置Analytics for Firebase的用户属性吗?我找不到有关融合这两个工具的深​​入文档.

Does anyone know if there is a way to set User Properties of Analytics for Firebase with Google Tag Manager? I'm not finding deep documentation about converging this two tools.

推荐答案

假设您拥有一个名为令人兴奋的用户属性,并且您已经为该用户属性编写了Firebase代码,如下所示:

Lets say you have a user property called exciting_sport and you have written the Firebase code for this user property as follows:

Analytics.setUserPropery("exciting_sport", xcitingsport);

现在,在GTM控制台中,您需要创建一个与用户属性键匹配的新变量.看一下所附的屏幕截图.

Now in the GTM console you need to create a new variable that matches the user property key. Take a look at the attached screenshot.

用户属性键名称的名称应与代码中设置的键完全相同.您可以使用此变量来创建类似的Universal Analytics标签,并将其添加为事件跟踪类型的参数.这将与任何其他事件类似.

The name of the user property key name should math exactly with the key set in the code. You can use this variable to create a Universal Analytics tag similar and add as a parameter in a event track type. This would work similar to any other event.

您还可以将setUserID添加到用户属性中,并进行同样的跟踪.

You can also add setUserID to the user property and track it likewise.

这篇关于Analytics for Firebase-使用Google跟踪代码管理器的用户属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 11:32