Prevent click tracking in emails with Mandrill

Problem statement

I want to prevent Email links from being created with Click Tracking. I am using Mandrill as my email provider.

Cause

Mandrill includes a Click Tracking feature, which is enabled by default as outlined in this documentation: https://mailchimp.com/developer/transactional/docs/activity-reports/#click-tracking.

Solution

To disable click tracking for a specific email link, you need to include mc:disable-tracking to the a tag. E.g.

<a href="{{ url }}" mc:disable-tracking>
  Click here to confirm your email
</a>