I am following the instructions contained here https://developers.google.com/analytics/devguides/collection/ios/v3/campaigns#url-builder
Xcode refuses to compile since this statement
[hitParams set:kGAICampaignMedium value:@"referrer"];
gives this error:
No visible @interface for 'GAIDictionaryBuilder' declares the selector 'set:value:'
The same happens to the kGAICampaignSource
I have seen that the "correct" calls may be these two
[hitParams setValue:kGAICampaignMedium forKey:@"referrer"];
[hitParams setValue:kGAICampaignSource forKey:[url host]];
However there is another issue with the call:
[tracker send:[[[GAIDictionaryBuilder createAppView] setAll:hitParams] build]];
Which sends a warning because hitParams should be a NSDictionary and it is a GAIDictionaryBuilder.
Am I doing something wrong? I have upgraded google analytics to the latest (3.10) version.
Thank you all