简体   繁体   中英

How to track utm_source,utm_medium in google analytics Android SDK?

I am trying to track emailIDs of the user who is using my application. For all the events I am using Google Analytics.

Now, I want to set source as the email id of the person who logged into my application.

How to do that?

For all the events & page views that were tracked till now,

Source is direct

Medium is None

I even tried with setReferrer . Even then, if I search for ReferralPath as secondary dimension but the value is (not set)

Please advice me, what is the best way to track email address? Or how to set Souce as email address?

you can do using the v2 too. In this link you will find tutorials:

https://developers.google.com/analytics/devguides/collection/android/v2/campaigns

if you use the EasyTracker, you can use (not tested):

String campaign = "campaign_parameters_like_this:utm_campaign=my_campaign&utm_source=google&utm_medium=cpc&utm_term=my_keyword&utm_content=ad_variation1";
EasyTracker.getTracker().setCampaign(campaign);

to set a default general campaign.

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