Integrate Adjust deep links in SendGrid
When email service providers (ESPs) wrap the deep link URL with their own link, it breaks the iOS universal link. This page explains how you can set up deep links and click recording with your SendGrid account.
Before you begin
To use this feature, you first need to download and set up the Adjust SDK for your platform. Follow the instructions linked below to get started.
Once you have the Adjust SDK installed and configured, follow the guides linked below to configure deep linking on your app:
Turn on deep linking with Adjust universal links for SendGrid
SendGrid supports universal links on top of their domain. In this case, you can perform deep linking and click recording.
In SendGrid
- Complete the link branding process in your SendGrid account following SendGrid's documentation. Choose your click recording domain for serving your apple-app-site-association (AASA) files and redirecting them to Sendgrid. For example
link.brand.com
.
In your server
- Set up your domain to conditionally serve an AASA file or proxy to SendGrid. Details on how to set it up can be be found in SendGrid's documentation.
- A valid AASA file should be hosted under the path. You can follow Apple's guide to create one or leverage the example found in SendGrid's documentation.
In your app
Enable Associated Domains
for your click recording domains in Xcode. For more information, see Apple's documentation.
Link Resolution
When you run email campaigns, SendGrid wraps all links in the emails with its own click recording redirect URL. This allows you to view click-through statistics in SendGrid. However, if the emails contain Adjust Universal Links, the redirect URL causes iOS to not resolve the Adjust Universal Links properly. You need to use link resolution to solve this issue.
Learn more about how to set up link resolution in the Adjust SDK.
In the email campaign
- Use your Adjust Universal Link in your SendGrid email project.
- Make sure to test the integration before launching live email campaigns.
You are all set!