Analytics for Firebase - User Properties with Google Tag Manager

大城市里の小女人 提交于 2020-01-05 04:30:28

问题


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.


回答1:


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);

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.

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.

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



来源:https://stackoverflow.com/questions/46570633/analytics-for-firebase-user-properties-with-google-tag-manager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!