Implement Google Analytics in iOS

This article describes how to implement Google Analytics in your iOS Meridian-powered app.

Implement Google Analytics

If you'd like to implement Google Analytics reporting for your app, add the following code to MSAppDelegate.m:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // configure the Meridian SDK
    MRConfig *config = [MRConfig new];
    config.googleAnalyticsTrackingCode = @"TRACKING_ID";
     // must be called once, in application:didFinishLaunching
    [Meridian configure:config];

Replace TRACKING_ID with your unique Google Analytics tracking ID.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.