Skip to content

Email Links

Email platforms wrap every link in an email in their own click-tracking address. That is how they count clicks. It also means a tap on the link goes to the email platform’s domain, not to your link domain, so the phone opens the browser instead of your app.

Email links fix that. You tell Tolinku which click-tracking domain your email platform uses, and links in your emails open your app. Your email platform still counts every click.

  1. Someone taps a link in an email It’s on your click-tracking domain.
  2. Your app opens The phone knows the domain belongs to your app.
  3. Tolinku unwraps the link The email platform still counts the click.
  4. The right screen opens The one the email linked to.

There are two ways, and your email platform decides which one you use.

For SendGrid, Amazon SES, and Braze when it sends through SendGrid or Amazon SES.

You point your click-tracking subdomain (its CNAME record) at Tolinku instead of at the email platform. Tolinku then:

  • serves the Apple and Android association files on that domain, so the phone knows your app may open those links;
  • claims only the links you mark for the app (SendGrid’s /uni/ links, or Amazon SES links with your custom path), so unsubscribe pages and “view in browser” links stay on the web;
  • passes every other request through to your email platform untouched, so its click and open tracking, unsubscribe links and reports keep working.

Before Tolinku answers on the domain, you prove you own it with a TXT record. The SSL certificate is issued for you.

For Klaviyo, Iterable, Salesforce Marketing Cloud and Customer.io.

These platforms host the association files on their own click-tracking domain. Tolinku generates the files for your app, and you upload them in the email platform. Nothing changes in your DNS.

When someone taps a link in an email, the phone opens your app with the click-tracking address. Your app hands that address to the Tolinku SDK, which asks Tolinku where it leads. Tolinku asks the email platform without following the redirect, so the platform counts the click once, as it always has. The SDK then gives your app the route, just like any other Tolinku link.

Email platformHow it worksGuide
SendGridTolinku handles the domainSendGrid
Amazon SESTolinku handles the domainAmazon SES
Braze (sending with SendGrid or Amazon SES)Tolinku handles the domainBraze
KlaviyoYour platform hosts the filesKlaviyo
IterableYour platform hosts the filesIterable
Salesforce Marketing CloudYour platform hosts the filesSalesforce Marketing Cloud
Customer.ioYour platform hosts the filesCustomer.io

Each guide covers the whole setup from start to finish, including your app.

  • A paid plan. Email links are not part of the Free plan. They also stop while the Appspace is frozen, has an unpaid bill, or is held at its limit on basic links (see Billing & Plans). See What happens if my plan changes? below.
  • Your app’s details in Settings. For iOS, your Apple team ID and bundle ID (Configuring iOS). For Android, your package name and SHA-256 certificate fingerprint (Configuring Android). Tolinku builds the association files from these.
  • App open attribution not set to Always. With Always, Tolinku keeps links away from the operating system so every tap loads the hand-off page. That applies to email links too, so they stay in the browser. See Attributing App Opens.
  • Tolinku SDK 0.8.2 or later in your app, on every platform you ship. Email links need it.
  • The Admin or Owner role to add, verify or remove an email domain. Editors can open a domain and see its setup steps.
  • Up to 20 email domains per Appspace.
  1. Go to Domains in the sidebar.

  2. In the Email links card, click Add email domain.

  3. Choose your email platform. They are grouped under Tolinku handles the domain and Your platform hosts the files.

  4. In Click-tracking domain, enter the click-tracking subdomain your email platform uses, like email.links.yourapp.com. This is the email platform’s domain, not your Tolinku link domain.

  5. For Amazon SES (and Braze sending with Amazon SES), also choose the AWS region you send from and enter a Custom path for app links.

  6. Click Add email domain. The setup steps for your platform open next. You can come back to them any time by clicking the domain in the Email links card.

Add an email domain drawer with the email platforms grouped by who hosts the files, and the click-tracking domain field

The rest depends on your platform. Follow its guide from the table above.

Every platform needs these two changes in your app. The setup steps in the dashboard show the exact lines for your domain.

iOS: in Xcode, under Signing & Capabilities, add the click-tracking domain to Associated Domains:

applinks:email.links.yourapp.com

Android: add the domain to an intent filter. SendGrid and Amazon SES need a path prefix (/uni/ for SendGrid, /CL1/your-custom-path/ for Amazon SES), so only the links you mark open the app. The other platforms use the whole domain.

<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="email.links.yourapp.com" android:pathPrefix="/uni/" />
</intent-filter>

Give the email domain its own <intent-filter>. Android combines all the <data> lines in one filter, so a path prefix written there would also apply to your other link domains.

When your app opens from a link, pass the whole URL to links.resolve. It works out where an email link leads and returns the route. It also handles your ordinary Tolinku links, so you can send every incoming link through it.

func handle(_ url: URL) async {
if let link = await Tolinku.shared?.links.resolve(url) {
route(link.deepLinkPath)
} else {
// Not a link Tolinku could resolve: fall back to your own handling.
}
}

resolve never throws. It returns nothing when it can’t resolve the link, for example on a bad network, or when the email link leads to a page that isn’t one of your routes. The SDK must be configured with your publishable API key. For more on resolve, see the SDK reference for iOS, Android, React Native, Flutter or Web.

The email platform counts the click once, in its own reports, the same way it did before. Tolinku asks the platform where the link leads without following the redirect, so the click isn’t counted twice. Customer.io works differently: it doesn’t wrap app links, so Tolinku reports the click to Customer.io for you.

Open the domain from the Email links card and click Remove.

If your platform hosts the files, remove the files from your email platform too. Otherwise links keep opening your app, but Tolinku no longer says where they lead.

  • Mailchimp doesn’t offer a custom click-tracking domain, so there is no domain for Tolinku to work with.
  • OneSignal email isn’t supported.

If your platform isn’t listed, it isn’t supported yet.

Email links need a paid plan, and Tolinku checks every time a link is resolved.

  • Tolinku handles the domain: Tolinku stops claiming links on it, so the phone opens them in the browser. Tolinku keeps passing requests to your email platform, so the links still work and clicks are still counted.
  • Your platform hosts the files: the files you uploaded stay where they are, so links still open your app. Tolinku won’t say where they lead, so resolve returns nothing and your app falls back to its own handling.
  • Check that your app has SDK 0.8.2 or later and lists the click-tracking domain in Associated Domains (iOS) or an intent filter (Android).
  • For SendGrid and Amazon SES, check that the link carries the attribute (universal="true" or ses:custom-path). Unmarked links stay in the browser on purpose.
  • Check that App open attribution isn’t set to Always.
  • Pasting a link into Safari’s address bar never opens an app. Send a real email to a test phone and tap the link there.
  • iOS fetches the association file when the app is installed, through Apple’s CDN, which can take a while to pick up changes. Reinstall the app after you change anything.

DNS changes can take a few minutes. Check the record’s name: it’s _tolinku. followed by the click-tracking domain, for example _tolinku.email.links.yourapp.com. Some DNS providers add your domain to the name for you; if yours does, enter only the part before it.

The click-tracking domain can’t be one of your Tolinku link domains, in this Appspace or any other. Use the email platform’s own click-tracking subdomain.

”Another account has already verified this click domain”

Section titled “”Another account has already verified this click domain””

Only one Appspace can handle a click-tracking domain. Contact support if you need to move it.

Should the CNAME be proxied through Cloudflare?

Section titled “Should the CNAME be proxied through Cloudflare?”

No. If you use Cloudflare, set the record to DNS only (grey cloud), as you would for a custom domain.

Was this page helpful?