Deep Linking
    • 1 Minute to read
    • Dark
      Light

    Deep Linking

    • Dark
      Light

    Article summary

    You can track campaigns via a deep link to an already installed mobile application. Here's how:

    Example iOS

    Please note that custom parameters are optional in the request.

    Pass the URL you want to track (universal links, shared URLs, etc... ) and define media code:

    MappIntelligence.shared()?.trackUrl(userActivity.webpageURL, withMediaCode: nil)

    Full Code Example:

    @available(iOS 13.0, *)
    func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
         MappIntelligence.shared()?.trackUrl(userActivity.webpageURL, withMediaCode: nil)
    }

    Pass the URL you want to track (universal links, shared URLs, etc... ) and define media code:

    [[MappIntelligence shared] trackUrl:[[NSURL alloc] initWithString:@"some universal link"] withMediaCode:NULL];

    Full Code Example:

    - (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity {
        [[MappIntelligence shared] trackUrl: [userActivity webpageURL] withMediaCode:NULL];
    }

    The request parameters will be persisted and sent with the next page event that does not have campaign parameters. 


    Was this article helpful?

    What's Next