Skip to content

Braze

Braze sends email through SendGrid or Amazon SES, and the click-tracking domain belongs to whichever one it uses. Tolinku handles that domain: you point it at Tolinku, and Tolinku passes everything through. Links you mark open your app; every other link, including unsubscribe, stays in the browser. Braze keeps counting clicks.

For how this works and what it needs, see Email Links.

  • A paid Tolinku plan. Email links aren’t on the Free plan.
  • Your Apple team ID and bundle ID and/or your Android package name and SHA-256 fingerprint in Settings (Configuring iOS, Configuring Android).
  • App open attribution not set to Always (Attributing App Opens).
  • The Admin or Owner role in the Appspace.
  • Your Braze click-tracking domain, and access to its DNS records. You’ll find it in Braze under Settings > Email Preferences > Outbound Email Settings > Sending Configuration.

Look at the CNAME record for your click-tracking domain:

  • If it points to sendgrid.net, Braze sends with SendGrid.
  • If it points to something like r.us-east-1.awstrack.me, Braze sends with Amazon SES, and the part between r. and .awstrack.me is your AWS region.

If you’re not sure, ask your Braze contact.

Braze with Amazon SES: choose a custom path

Section titled “Braze with Amazon SES: choose a custom path”

Pick a short word your app links will carry, like app. A link marked ses:custom-path="app" gets a tracking address starting with /CL1/app/, and only those links open the app. The path can use letters, numbers, dots, dashes or underscores, up to 32 characters, and it’s case-sensitive.

  1. Go to Domains in the sidebar.

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

  3. Under Tolinku handles the domain, choose Braze (sending with SendGrid) or Braze (sending with Amazon SES).

  4. In Click-tracking domain, enter your Braze click-tracking domain, for example email.links.yourapp.com.

  5. For Amazon SES, choose the AWS region you send from and enter your Custom path for app links.

  6. Click Add email domain. The setup steps open.

Tolinku only answers on the domain once you’ve proved it’s yours, so nobody else can claim it.

  1. Under Prove you own the domain, copy the TXT record. Its name is _tolinku. followed by your domain, and its value starts with tolinku-verify=.

    TypeNameValue
    TXT_tolinku.email.links.yourapp.comtolinku-verify=...
  2. Add the record at your DNS provider. Leave the CNAME as it is for now.

  3. Click Check the record. When it’s found, the step shows Verified. You can leave the TXT record in place.

Do this only after the domain is verified.

  1. At your DNS provider, find the CNAME record for your click-tracking domain. It points to sendgrid.net or r.<region>.awstrack.me.

  2. Change its value to edge.tolinku.com.

    TypeNameValue
    CNAMEemail.links (your subdomain)edge.tolinku.com
  3. Back in Tolinku, the step shows Done once the change is seen, and SSL once the certificate is issued. The certificate is issued for you.

Tolinku passes every request on to SendGrid or Amazon SES, so Braze’s click and open tracking, unsubscribe links and reports keep working.

Point each app link at your normal Tolinku link, on your Tolinku domain, then add the attribute for your email platform. Only marked links open the app; every other link stays in the browser.

In the email editor’s HTML, add universal="true" to the link:

<a href="https://links.yourapp.com/product/42" universal="true">See the product</a>

In AMP emails, Braze uses data-universal="true" instead.

See Braze’s guide: Universal links and App Links. You don’t need to host the files it describes, or put your own CDN in front of the domain; Tolinku does both.

The setup steps in the dashboard end with Add the domain to your app, which shows these lines for your domain.

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

applinks:email.links.yourapp.com

Android: add an intent filter for the domain. The path prefix makes only the links you marked open the app. Use /uni/ for SendGrid, as below, or /CL1/your-custom-path/ for Amazon SES. Give it its own <intent-filter>, so it doesn’t change how your other link domains are matched.

<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>

In your code: pass every link your app opens with to links.resolve. It needs Tolinku SDK 0.8.2 or later, configured with your publishable API key.

if let link = await Tolinku.shared?.links.resolve(url) {
route(link.deepLinkPath)
}

When resolve returns nothing, fall back to your own handling. See Set up your app for the full version.

Release the app update before you send emails that rely on it. People with an older version of your app will see links open the browser, as they did before.

Send a test email from Braze to a phone that has the new version of your app, and tap a marked link. The app should open on the right screen. An unmarked link should open in the browser. Tapping a link pasted into Safari’s address bar never opens an app, so always test from an email.

  1. At your DNS provider, point the CNAME back at sendgrid.net or r.<region>.awstrack.me, whichever it was.

  2. Wait for the change to take effect.

  3. In Tolinku, open the domain from the Email links card and click Remove.

If you remove it in Tolinku first, links in emails you’ve already sent stop working.

For more questions, see the FAQ.

Was this page helpful?