Link Tracking

Link Tracking


Why track links?

When link tracking is enabled we'll be able to track general click metrics (i.e., the % of recipients clicked a link in your email) and also let you know which links specifically are being clicked.

Tracking links also allows you to see links clicks by going to a particular user's Activity tab, and expanding a Clicked Link entry:

image.png

Emails

For Campaigns and API Triggered Broadcasts, link tracking is enabled for emails in your workflows by default. While editing the workflow, tap the email you want to edit and a panel of options will appear on the left. Here's a better image to show where you can enable/disable that for a whole email in one of those workflows:

link-tracking-enable-for-workflow-email.png

For Newsletter Broadcasts, you can enable/disable link tracking for the whole message on the "Goal" tab during setup:

link-tracking-enable-for-newsletter-email.png

Other message types

Link tracking is not enabled by default for other message types, though it does work for SMS, Push, webhooks, and Slack. In order to track links in these messages, we ask that you use a liquid tag when creating your link, like this:

{% cio_link url:http://example.com %}

The track_url indicates to us that you would like Customer.io to track this particular link.

The possible flags are track: and url_params:, with the following usage:

{% cio_link url:http://example.com track: true/false url_params: true/false %}

The default for both is true.

You may not want tracked links in non-email message types!

In order to track your links, we wrap the link's URL in a URL that points to us so that we can log the click before forwarding the request to the final destination. This means that the URL we generate will generally be much longer than is desired for non-email message types.

Example:
http:‌ //e.customeriomail.com/e/c/eyJlbWFpb29pZCI6IlJLS2hBZ01BQVhKaVBtS2pKeGtWWllCME21N0Qzdz09IiwiaHJlZiI6Imh0dHBzOi8vZmFucy5jb20vaG91c2Utc7VsZXMvIi7ibGlua19pZCI7NTkwMTE5NzMsInBvc7l0779uIjoyMH0/e72cf17efa292d48f56d65535b3f7c45fe75d2365bf18caa1aebcaf6a2632c66

When generated for an SMS message, such a long link could cause the message to be split in two which will break the link.

Counting link clicks

There are two ways of counting clicks in Customer.io. Which way is better depends on the information you need!

  1. Total clicks: For each tracked link in a given campaign or newsletter, you can find this in the "Top Clicked Links" metric in the campaign overview or newsletter report.
    image.png

The amounts listed are the total number of times each link has been clicked, which includes multiple clicks on the same link from the same user. This is not a count of unique links.
3. Unique clicks: For a given tracked link, create a segment for the link you'd like to track, like this:
image.png

Then, when you save this segment, you'll see how many people it contains. This is the number of unique clicks.

Security and privacy

You should not enable link tracking for links that contain secure or private information such as password resets or time-limited downloads.

Our tracked links are securely signed but the link information is not encrypted and is sent over HTTP by default. Optionally, you can choose to configure HTTPS Link Tracking, in which case we'll generate https links instead whenever link tracking is enabled in your messages.

NOTE: If HSTS (HTTP Strict Transport Security) is enabled on your domain you must configure HTTPS Link Tracking or your tracked links will not resolve correctly.

Also be aware that we record clicked links in your Activity Logs and campaign metrics so the URLs of your tracked links may be logged and visible in your account. For this reason, we strongly recommend disabling link tracking for sensitive links.

How to disable link click tracking

There are a few ways to do this, depending on which links you want to disable.

Disable tracking for specific links

If you'd like to prevent tracking for specific links within emails, you'll want to add class="untracked" to the link's code, like this:

<a href="http://mydomain.com" class="untracked">CLICK HERE</a>

If you use the drag and drop editor, please note that the standard linking process in that editor will not allow you to add the class="untracked" code that we need in order to disable link tracking. You can still add a untracked links in the drag and drop editor but you must do it inside an HTML block. If you are not familiar with HTML and CSS, you'll want to consult a web developer who is familiar with code designed for email.

Disable link tracking for individual emails

If you'd like to disable tracking for the entire email, you can do this within the workflow. Click the email you'd like to disable tracking for, and uncheck the 'track links' box.

image.png

This will disable open and click tracking for that particular email only. If you want to disable tracking for a whole campaign, you will have to disable it in each email.

Disable link tracking for a newsletter

Newsletter tracking can be disabled in the Goal section of the newsletter workflow:

image.png

Was this article helpful?