Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to track firebase dynamic link #4775

Closed
Narendra-Pandey opened this issue Jan 30, 2020 · 4 comments
Closed

How to track firebase dynamic link #4775

Narendra-Pandey opened this issue Jan 30, 2020 · 4 comments

Comments

@Narendra-Pandey
Copy link

i have added UTM parameter using FIRDynamicLinkGoogleAnalyticsParameters

FIRDynamicLinkGoogleAnalyticsParameters *analyticsParams =
  [FIRDynamicLinkGoogleAnalyticsParameters parametersWithSource:Source
                                                         medium:Medium
                                                       campaign:Campaign];
  analyticsParams.term = Term;
  analyticsParams.content = Content;
  components.analyticsParameters = analyticsParams;

Now i want to track the dynamic link like this,

if i have shared on Facebook, any one tap on that link then it will go to application if there else it will go to App Store.

After i need to show message based upon it’s source i.e welcome from Facebook like message.

So can we track dynamic link and check from where the link has been tapped and show relevant message based upon i’t source.

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@morganchen12
Copy link
Contributor

You can't track where the link was tapped from unless you create a custom link (or add custom parameters) for each source, but even then this will result in mismatches if a user ever copies a link and shares it to a different source.

@Narendra-Pandey
Copy link
Author

@morganchen12 You mean to say if I create a campaign, using FIRDynamicLinkGoogleAnalyticsParameters when one tap on Facebook I will pass Facebook in dynamic Link campaign. Then can track this link ?

Also one confusion I have for getting campaign from first_open i.e installing from App Store and opening first time.

Steps:

  1. Create dynamic link, add campaign based on tapped platform. i.e Facebook, twitter, instagram.
  2. Someone tapped on link from Facebook, install application from link.
  3. Can I get campaign, source, medium , terms, content while first_open ?

I got to know pending link via this code:

FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url];

As this code will be written in open url block

- (BOOL)application:(UIApplication *)app
            openURL:(NSURL *)url
            options:(NSDictionary<NSString *, id> *)options;

@morganchen12 Please let me know does I am going in right direction? or something I need to correct or add here.

@morganchen12
Copy link
Contributor

You're headed in the right direction, but be aware that if a user copies your link from Facebook and shares it to a different website, the Facebook parameters will still be present and you will misattribute some percentage of your link opens.

Also, when filing new issues please follow the issue template.

@firebase firebase locked and limited conversation to collaborators Mar 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants