Firebase Dynamic Links

Tram Ho

Overview

Firebase Dynamic Links are links that work the way you want them to, across multiple platforms, and whether your app is installed or not.

Firebase Dynamic Links helps to control where users want to go depending on whether or not they have an app installed. Such behavior will result in a richer user experience when interacting with marketing campaigns.

With Firebase Dynamic Links, your users get the best available experience for the platform on which they open your link. If a user opens Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app. If a user opens the same Dynamic Link in a desktop browser, they may be brought to the same content on your website.

Also, Dynamic Links works on app installs: if the user has the Dynamic Link open on iOS or Android and your app is not installed, the user may be prompted to install it; Then, once installed, your application starts up and the link is accessible.

You can create Dynamic Links using the Firebase console (Firebase console), using the REST API, the API builder for iOS or Android, or by creating a URL by adding the Dynamic Links parameter to the domain. specific to your application. These parameters specify which links you want to open, depending on the user’s platform and whether your application is installed.

When a user opens one of your Dynamic Links, if your app is not installed, the user will be taken to the Play Store or App Store to install your app (unless you specify otherwise). and your application will open. You can then retrieve the link that has been passed to your app and process the appropriate deeplinks for your app.

In this article, we will look at the differences between components in Firebase Dynamic Links, which you need to consider when creating Dynamic Links. These help ensure that the user is redirected to the desired landing page / app, and the marketing channels remain intact throughout the conversion.

For example: When app lazada, shoppee, tiki advertises products on facebook, so when you click the ad on the product you choose, the system will check and open the app lazada, displaying the correct product you choose.

1. Dynamic Link Components

There are four Components of Dynamic Link to keep in mind when creating Firebase Dynamic Links:

  • What to do when a user already has the app installed ? (What to do when the user has installed the app?)
  • What to do when a user clicks from Android without an app ? (What to do when a user clicks from Android without an app?)
  • What to do when a user clicks from iPhone without an app ? (What to do when a user clicks from an Iphone without an app?)
  • Where to add UTM parameters to the URL of dynamic link? (Where to add the UTM parameter to the dynamic link URL?)

Here’s a typical Dynamic Link follow:

1.1 What to do when a user already has the app installed?

DeepLink was used in Firebase Dynamic Links when users had installed apps and were re-launched on target.

What is DeepLink? DeepLink are links that allow the user to navigate to a specific piece or piece of content of an application or website. For example, a DeepLink clicked on takes the user directly to the product catalog section of the application.

DeepLink contains all the information needed to point to a particular item.

Here’s how to add DeepLink in creating Firebase Dynamic Links:

DeepLink entered above will activate once the user has installed the application.

1.2 What to do when a user clicks from Android without an app?

In the event that there are no Android apps installed, Dynamic Link allows opening the Play Store app page or any custom URL.

Regardless of whether marketers want to send users to the website or the App Store, we would suggest using the custom URL option. The reason for the custom URL is that we can add UTM parameters in the custom URL. Doing so allows us to capture the UTM in the mobile app’s native code after the user has installed the app, which can be submitted to any desired analytics platform like Mixpanel, Amplitude , or Firebase Analytics. Read here for more details on how to grasp the demo on app settings.

How to create a custom URL for Android? (How to create a custom URL for Android)

PlayStore URL builder will help to create custom URL for android. Scroll down to the bottom of the page to create a URL.

See the example below:

Example custom URL generated by the Google Play URL Builder
https://play.google.com/store/apps/details?id=com.disrupt.savyour&referrer=utm_source%3DtestSource%26utm_medium%3DtestMedium%26utm_campaign%3DtestCampaign

Can you see in the URL that there is a referrer parameter before the UTMs? This parameter is the Param that allows us to capture native code traffic information in Android.

Here is how it looks in Firebase:

1.3 What to do when a user clicks from iPhone without an app?

Send users to the App Store similar to Android. The only change is we don’t have to use custom URLs because as of this writing the App Store doesn’t have any APIs that allow us to capture traffic sources in native apps similar to Android.

However, for iPhone, we add campaign parameters on the App Store. Doing so helps view campaign information directly in the in-app store analytics.

See more details here

1.4 Where to add UTM parameters to the URL of dynamic link?

Although we added the UTM in custom URLs for Android, we also need to add the UTM parameter in the final part of the dynamic link creation process. The reason is that when a user clicks on a dynamic link to an installed app, these are the values ​​we receive in the native code for submission to the analytics platform. Hence, adding UTM here is also essential.

This final section also has an option to add text and links (links) to social media previews. It is better to add relevant information to it. See the image below:

2. How to verify Dynamic Links?

Firebase provides a way to verify Firebase Dynamic Linking. This allows you to see how the link will behave depending on where the user clicks the link.

To verify the link, paste the link into your browser and add ? D = 1 at the end and press enter. Doing so opens up a chart that shows how users will move depending on where they interact with the link.

Here are example images of what you will see:

It describes how the dynamic link works depending on the user’s platform. So, for example from top left, in image, if the clicked link from Android with app installed then the dynamic link will be opened and if the app is not installed then the backup URL will be activated . The backup URL in our case is the custom URL we entered.

3. How to View Dynamic Link Stats?

The first option is to view statistics, such as new clicks and total clicks, directly in the Firebase console (Firebase console).

The second option is to view it in Firebase analytics. Here are the events you’ll see in Firebase analytics:

See details here

Conclusion

Firebase Dynamic Links provides a powerful way to control how users are transferred to apps, depending on the state of their app installs. If created correctly, dynamic links not only provide a better experience, but also allow you to capture the right marketing funnel information in your analytics tools.

References:

Share the news now

Source : Viblo