[英]Analytics for Firebase - User Properties with Google Tag Manager
Does anyone know if there is a way to set User Properties of Analytics for Firebase with Google Tag Manager? 有人知道是否可以使用Google跟踪代码管理器设置Firebase Analytics的用户属性吗? I'm not finding deep documentation about converging this two tools.
我找不到有关融合这两个工具的深入文档。
Lets say you have a user property called exciting_sport and you have written the Firebase code for this user property as follows: 假设您有一个名为“令人兴奋的运动”的用户属性,并且已为此用户属性编写了Firebase代码,如下所示:
Analytics.setUserPropery("exciting_sport", xcitingsport);
Now in the GTM console you need to create a new variable that matches the user property key. 现在,在GTM控制台中,您需要创建一个与用户属性键匹配的新变量。 Take a look at the attached screenshot.
看一下所附的屏幕截图。
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.
您可以使用此变量来创建类似的Universal Analytics标签,并将其添加为事件跟踪类型的参数。 This would work similar to any other event.
这将与任何其他事件类似。
You can also add setUserID to the user property and track it likewise. 您也可以将setUserID添加到用户属性并进行跟踪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.