简体   繁体   中英

Configure EasyTracker programmatically

I am using EasyTracker in my app. I need to change the ga_trackingId programmatically and can't use the xml. I couldn't find any thing about it anywhere.. Is it posible? Thanks!

You can use multiple tracker each with a different ga_trackingId as stated in the documentation here: https://developers.google.com/analytics/devguides/collection/android/v2/advanced#multiple-trackers

Instead of "changing" ga_trackingId, you should put some condition to use one tracker or another based on your needs.

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