How to handle link tracking in emails?

Batch provides a highly flexible way of tracking clicks on links. Here are the three available options for this feature.

Batch provides a highly adaptable method for individually monitoring the clicks on links, and displays detailed statistics for each email campaign or automation sent.

These allow you to track generic indicators (e.g. click-through rate), but also to see the number of clicks on each of the links in your e-mails, so you can understand which part of your message converts best and optimize your content (e.g. clicks concentrated on the unsubscribe link or the buy button).

On the Dashboard, you can see both the generic clicks indicator and the list of links for each of your email campaign/automation analytics👇

Batch offers 3 different ways to track clicks, depending on your use case:

  • Track clicks separately, per URL.

  • Group clicks on similar links under a "link name".

  • Disable the click tracking for one or several URLs.

Default click tracking

By default, Batch will track clicks on all of the URLs of your email. The raw clicked URL will be displayed in the campaigns analytics 👇

Grouped link tracking

Allows you to group the click tracking behind a "link name" defined on your end while editing the email template (e.g. "social_networks" for your social network links in the footer of your email) 👇

It is suitable for personalized links to avoid having too many raw personalized links in the stats or links that don't have enough value to be tracked individually.

Here are several cases where using a link name tracking is useful:

  • Privacy & Double opt-in automations: Attaching a link name to URLs in your email (e.g. validation_url) is the best solution if you don't want to expose raw personalized URL in the campaigns analytics, but still want to track clicks on these links.

  • Deduplication of URLs with personalization: A single link with a personalization variable that changes for each user (e.g. https://website.com/?promocode={{unique_code}}) will result in hundreds/thousands of different links tracked for the same URL in the template. Using a link name “redeem_link” to track all of the clicks on that link in the template is a better option.

  • Grouping of similar links: You can group similar links to gain visibility on the type of links clicked by users.

  • Tracking the same link separately:

    • Why? If you have the same URL several times in your email, Batch will attribute all of the clicks to a single URL in the campaign analytics. While this is great to have a synthetic view on which URLs were clicked, this can be an issue if you want to know from where the clicks are coming from (e.g. from the URL in the header, or from the same URL in the body of the email).

    • How? Use a different link name for the same URL, according to where the URL is placed (e.g. mylink_body) and use a different one for the same link, placed in the footer (e.g. mylink_footer). In the campaign analytics, you will be able to measure the distribution of clicks on that specific link, based on where it is placed in the email.

To attach a link name to a URL in your email, simply add a data-msys-linkname="NAME" parameter to the <a> html tag of the link:

<a data-msys-linkname="NAME" href="[URL]">My link</a>

Replace NAME with the link name you want to use. Link names have a maximum length of 63 characters and are truncated if they exceed the limit.

Disabled click tracking

Allows you to disable link tracking completely if you want to avoid showing links with personal/sensitive data (e.g. a password reset token, etc) in Batch analytics, or if your links are unique for each users and you don't want to have thousands different entries in the analytics or for any technical reasons (e.g. universal link support).

Lastly, you may need to disable click tracking on a specific link, and this option is suitable for cases where no click is to be tracked.

It applies to these two cases mainly:

  • Privacy & confidential links

  • Universal links

To implement this, you only need to add a data-msys-clicktrack="0" parameter to the <a> html tag of the link:

<a data-msys-clicktrack="0" href="[URL]">My link</a>

Last updated

Was this helpful?