Dedicated click tracking allows you to display your own domain on click tracking links as opposed to the default Klaviyo encoding. In this article, you will learn how to set up dedicated click tracking and best practices when doing so.
Set Up Dedicated Click Tracking
Setting up dedicated click tracking requires adding additional CNAME records to your DNS settings with your hosting provider. We provide the records below, which you copy/paste into your DNS provider.
Then, add the following 2 CNAME records to set up your dedicated click tracking domain:
Depending on your DNS provider, the name of the
Value fields in the example above may differ. Check out our links below to the documentation for some popular DNS providers if you're having trouble.
After you've updated your DNS records, reach out to Klaviyo support. Our Support Team will then validate and activate your records. Please contact us if you are updating your records.
Tips for Where to Update Your DNS Records
You can update your DNS records wherever you registered or manage your domain names. However, not all domain registration services will allow you to edit all DNS records. If you cannot update the records above, contact your DNS provider for information on how to update these records.
The process of editing your DNS records will depend on what domain provider you are using. We've compiled links to documentation for some common providers here:
Set Up SSL for Dedicated Click Tracking
We recommend that you set up SSL for dedicated click tracking as a next step in this process. Follow the directions outlined in our article on how to set up SSL for dedicated click tracking to be guided through this process. As you follow this process, the trk.yourdomain.com or the equivalent hostname will no longer point to sendgrid.net but instead to the CDN you make use of.
Please reach out to our Support Team to have the CNAME records validated before beginning the process for SSL for dedicated click tracking set up
If you have a HSTS (HTTP Strict Transport Security) record in place for your domain with the "includeSubDomains” directive, SSL for dedicated click tracking will be required by browsers to have your links function properly. Otherwise, you will need to remove this HSTS record (or the "includeSubDomains" directive) and wait for the cached version to expire its TTL.
HSTS is a security policy that is implemented in web servers, network devices, and CDNs. The policy instructs web browsers to load the website content only through a secure connection (HTTPS rather than HTTP) for a defined duration. This is designed to help protect users from protocol downgrade attacks and cookie hijacking. If you have this established with the "includeSubDomains" directive, which will force the same secure connection requirements on subdomains as well (trk.yourdomain.com), you must set up SSL for dedicated click tracking.