According to Google's documentation (Analytics for iOS), they want you to download some auto-generated .plist file to configure your app. Unfortunately, I have multiple report suites (Debug, Release) and need to switch dynamically depending on the build. So I'm trying to do one of two things:
-OR-
How have you dynamically instructed your app to send to different report suites depending on whether your app is Debug or Release?
Stay organized with collections Save and categorize content based on your preferences. Use our iOS sample app to see how Analytics works, or add Analytics to your existing app.
You should be able to ditch the .plist file and setting it up like so:
#import "GAI.h"
...
GAI *gai = [GAI sharedInstance];
[gai trackerWithTrackingId:@"your GA id"];
gai.trackUncaughtExceptions = YES; // optional
gai.logger.logLevel = kGAILogLevelVerbose; // optional - remove for release
Don't use the GGLContext stuff since that's trying to get parameters from the -plist file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With