简体   繁体   中英

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? 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:

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM