How to get active users distributed by Campaign source? Google Analytics campaign tracking ios

后端 未结 1 1827
一个人的身影
一个人的身影 2021-01-14 04:54

I need to track my ios app installs by campaign src. and i am using google Analytics campaign measurement for that .

  • i need to associate the campaign source wi
相关标签:
1条回答
  • 2021-01-14 05:20

    From the sample code given from Google Developer https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns

    if(![hitParams get:kGAICampaignSource] && [url host].length !=0) {
        // Set campaign data on the map, not the tracker.
        [hitParams set:@"referrer" forKey:kGAICampaignMedium];
        [hitParams set:[url host] forKey:kGAICampaignSource];
    
        // add this line to save the campaign source value
        [[NSUserDefaults standardUserDefaults] setObject:[hitParams get:kGAICampaignSource] forKey:@"ReferralID"];
    
    }
    
    0 讨论(0)
提交回复
热议问题