You will learn
Learn how to use deep linking in Klaviyo push notifications so that you can direct customers to a specific in-app screen. Deep links make it easy for your profiles to access the content they want with a simple tap.
Note that Klaviyo doesn’t officially support universal links.
What is a deep link?
A deep link is a custom URI that opens your mobile app to a certain page. It’s a common feature for push notifications, allowing marketers to link to, for example, a specific product page rather than the app’s home page. This way, recipients don’t need to search your app or navigate through menus to find the page they are interested in.
What’s a URI?
URI stands for uniform resource identifier. URIs are similar to URLs: while a URL is the address for a website, a URI is the address (or “identifier”) for an app (or other resource).
Before you begin
To use deep links in your push notifications, you must have connected Klaviyo to your iOS or Android mobile app.
You must also have deep linking set up for your app. If you aren’t sure if your app has deep linking, please talk with your developer.
Once deep linking is set up, you can use these links in other channels besides push notifications, including email and SMS.
Note that deep links can offer a potential way for unauthorized users to gain access to your app. You should always validate your URIs and their parameters, making sure to test and get rid of any that are formatted improperly. Also, add limits to any actions so that other apps can’t affect a user’s data (e.g., deleting content).
Want to request a feature for Klaviyo push notifications? Fill out this Google form to tell us about it!
About deep linking
Deep links are custom URIs that go to a specific part of your app.
There are 3 parts to a deep link:
- Identifying your app
- Tell the app what action to take
- Include any additional data about the action
These parts make up how your URI should look.
Note that deep links can offer a potential way for unauthorized users to gain access to your app. You should always validate your URIs and their parameters, making sure to test and get rid of any that are formatted improperly. Also, add limits to any actions so that other apps can’t affect a user’s data (e.g., deleting content).
Deep linking exampleDeep linking example
A URI scheme looks like this: scheme:[//authority]path[?query][#fragment]
Let’s break it down using an example:
myapp://product/123abc
- myapp://
This is the scheme, which points to your mobile app. While this scheme can be anything (letters, numbers, symbols), we recommend using your domain name. For instance, if this was Klaviyo’s app, it would look like: klaviyo:// - product/
This is the path in the URL, telling the app which page to open a product page (i.e., the action). - 123abc
This provides the app with additional information; in this case, to open the page for product 123abc.
Can I include UTM parameters in deep links?
Yes, you can use UTM parameters in both campaign and flow push notifications. This way, you can monitor the performance of push notifications in Google Analytics or other software.
For now, you will need to add the UTM parameters manually.
Can I include dynamic variables and template tags in deep links?
Yes, you can include both dynamic variables and template tags in deep links. You can thus personalize the links so that you can direct someone to their profile, cart, or favorites.
Add a deep link to a push notificationAdd a deep link to a push notification
You can add a deep link when creating the message text for your push notification.
Note that you’ll see different options depending on if you set up push for iOS, Android, or both. If you only have iOS set up in Klaviyo, you won’t have the option to add an Android deep link (and vice versa).
- Navigate to the campaign or flow message where you want the deep link.
- Go into the message editor.
- Enter in your push notification content.
- On the left-hand side, look for the Behaviors section.
- Click the dropdown under Open Action.
- Select Deep link.
Note that for the example below, the account only has enabled iOS push notifications.
- Add in your deep link(s).
Note: If the link is the same for both Android and iOS, you must add it to both fields. - Click Save & Continue to Review to save the message with the deep link.
Outcome
After including a deep link in your push notification, anyone who clicks on the message will automatically be directed to the page you specified.
This makes it easy for you to promote new products, encourage recipients to fill out their profiles, and more.
If you’re experiencing issues with your deep link (e.g., if it doesn’t open the right page), we encourage you to talk to your developer, as Klaviyo cannot help you troubleshoot these issues.
Additional resources