简体   繁体   English

Analytics for Firebase-使用Google跟踪代码管理器的用户属性

[英]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.

相关问题 Firebase分析+ Google标记管理器+ Google Analytics - Analytics for Firebase + Google tag manager + Google Analytics 将Firebase自动收集的用户属性传递给Google跟踪代码管理器 - Pass Firebase automatically collected user properties to Google Tag Manager 事件标签 - Google Tag Manager + Firebase + Google Analytics - Event Tag - Google Tag Manager + Firebase + Google Analytics 如何提取Firebase用户参数并通过Google跟踪代码管理器发送给Google Analytics(分析)? - How to extract firebase user parameter and send to google analytics via google tag manager? Google跟踪代码管理器和Firebase Analytics标记在Android设备上不起作用 - Google Tag Manager and Firebase Analytics tag not working on android device 将Google Analytics与FireBase + Google跟踪代码管理器Android SDK配合使用 - Using Google Analytics with FireBase + Google Tag Manager Android SDK 使用 Google Tag Manager 进行 Firebase 分析以响应原生 iOS 应用程序 - Firebase analytics with Google Tag Manager in react native iOS application 根据Google Data Studio中的用户属性过滤Firebase分析事件 - Filter Firebase analytics events based on user properties in Google Data Studio Android Release + Firebase + Google Tag Manager + Google Analytics 的 ecommerce_purchase 问题 - Problem with ecommerce_purchase for Android Release + Firebase + Google Tag Manager + Google Analytics Firebase Analytics是否会保留用户属性 - Does Firebase Analytics persist User Properties
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM