Skip to content

Customer.io

Customer.io works differently from the other platforms: it doesn’t wrap app links at all. You mark them as untracked, so they go straight to your Tolinku link domain and open your app like any other Tolinku link. Each link carries a Customer.io link ID, and Tolinku uses it to report the click back to Customer.io. Nothing changes in your DNS, and there are no files to upload.

For how email links work in general, see Email Links.

  • A paid Tolinku plan. Email links aren’t on the Free plan.
  • Your app already opening your Tolinku links: see Configuring iOS and Configuring Android.
  • App open attribution not set to Always (Attributing App Opens).
  • The Admin or Owner role in the Appspace.
  • Your Customer.io link tracking domain. In Customer.io, it’s the Host name in the Link tracking section of your sending domain’s settings. If you use a custom link tracking domain, its CNAME must be verified in Customer.io; if it isn’t, the tracking domain is e.customeriomail.com.
  1. Go to Domains in the sidebar.

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

  3. Under Your platform hosts the files, choose Customer.io.

  4. In Click-tracking domain, enter your Customer.io link tracking domain. Tolinku sends click reports there. Nothing changes in your DNS.

  5. Click Add email domain.

For each link that should open the app:

  1. Point it at your normal Tolinku link, on your Tolinku domain.
  2. Add link_id={% cio_link_id %} to its query string. Use ? if the link has no query string yet, or & if it does.
  3. Give it class="untracked", so Customer.io doesn’t wrap it. You can add other classes too, as long as untracked is one of them.
<a class="untracked" href="https://links.yourapp.com/product/42?link_id={% cio_link_id %}">See the product</a>

Leave {% cio_link_id %} out of your ordinary tracked links. Customer.io doesn’t support it there.

Customer.io’s guide explains the tag: Track universal links and app links in email. You don’t need to send the click to Customer.io from your app or server, as that guide describes; Tolinku does it.

When someone taps the link, Tolinku reads the link_id and reports the click to your Customer.io tracking domain. That happens whether the link opens your app (when the app resolves it) or opens in the browser for someone without the app. The same link reported again within ten minutes, for example by both the app and the browser, counts once. Clicks from bots aren’t reported.

The click appears in Customer.io as a Clicked Email event on the person’s activity.

With Customer.io, the links in your emails are on your Tolinku link domain, so your app needs that domain, not the Customer.io tracking domain. If your app already opens your Tolinku links, the first two parts are done.

The dashboard’s Add the domain to your app step shows lines for the Customer.io tracking domain. You don’t need to add those for Customer.io.

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

applinks:links.yourapp.com

Android: add an intent filter for the domain. 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="links.yourapp.com" />
</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. Earlier versions don’t send the link_id, so the click isn’t reported.

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 to a phone that has the new version of your app, and tap the link. The app should open on the right screen, and a Clicked Email event should appear in Customer.io a moment later. Tapping a link pasted into Safari’s address bar never opens an app, so always test from an email.

In Tolinku, open the domain from the Email links card and click Remove. Your links keep working and keep opening the app, but Tolinku stops reporting clicks to Customer.io.

For more questions, see the FAQ.

Was this page helpful?