Skip to content

Deep link tracking with UTM params #671

@Moorst

Description

@Moorst

Summary

I want to track utm params on deep links in my react native app. It appears that you can't pass properties to the context via the useAnalytics screen method - only the screenName and options which are passed to the properties object.

Is there a suggested method of doing this?

I also followed the iOS Deep Link Tracking Setup but this conflicts with the changes I made in the AppDelegate.m for react navigation:

- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  return [RCTLinkingManager application:application openURL:url options:options];
}

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
 restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
 return [RCTLinkingManager application:application
                  continueUserActivity:userActivity
                    restorationHandler:restorationHandler];
}

Could you suggest how to update my AppDelegate.m to cater for both react navigation & segment in this instance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions