On this page
What this issue is
Click tracking is a feature of email providers. They replace each link in your email with a link to their own server. When someone clicks, the provider records the click and then redirects them to your real page.
The problem appears when that rewritten link points to an http:// address, or to an https:// address whose certificate does not match the domain. The browser then shows a warning such as NET::ERR_CERT_COMMON_NAME_INVALID or "Not secure". This often happens after you add a branded link domain (for example links.yourdomain.com) with a DNS record, but the provider never issued or renewed a certificate for it.
Why it costs you leads or sales
- Form or checkout submittedCustomer completes the action
- Email deliveredConfirmation arrives in the inbox
- Link clickedLink points to http or mismatched tracking domain
- Redirect to your pageNever reached
- Confirmation, login or paymentNever completed
The email arrives, but the rewritten link fails before the customer reaches your site.
Example: illustrative numbers only. A certificate warning stops a share of customers before they reach your page.
How to check if your site has it
Trigger a real email
Submit your own form, place a test order or request a password reset so you get the email in a normal inbox.
Inspect the link
Hover over the main button or link and read the address in the status bar, or right-click and copy the link address. Note the domain and whether it starts with http:// or https://.
Click it in a clean browser
Open the link in a private window. Look for a padlock warning, a certificate error page or a stop at the tracking domain.
Check the certificate from a terminal
Run the command below against the tracking domain you saw. A mismatch or expired certificate shows up in the output.
curl -vI https://links.yourdomain.com 2>&1 | grep -iE 'subject:|issuer:|expire|SSL|certificate'
# Check whether plain http is redirected to https
curl -sI http://links.yourdomain.com | head -n 5How to fix it
SendGrid: check link branding
In Settings > Sender Authentication, open Link Branding. Make sure the CNAME records for your link domain exist in DNS and show as verified. Under Settings > Tracking, switch Click Tracking off if you do not need it. SendGrid issues the certificate for branded links, so if it stays invalid, re-verify the record and contact support.
Mailgun: use a tracking CNAME and HTTPS
In Sending > Domain settings, find the Tracking section. Point a CNAME to mailgun.org and enable the HTTPS tracking option so the certificate is managed for you. If you do not need it, turn off Click Tracking in the domain settings.
Postmark: set a custom tracking domain or turn links tracking off
Postmark link tracking is set per message stream. Either send with the TrackLinks option set to None, or set up the custom tracking domain in the server settings. Use the API field
TrackLinkson each message.Amazon SES: use HTTPS custom tracking
In the configuration set, open Tracking and Custom redirect domain. Set the domain and choose HTTPS, using a domain with a certificate you control via CloudFront or a load balancer. Or remove the click tracking event from the configuration set.
Find your SMTP or API plugin
Plugins such as WP Mail SMTP or the provider's own plugin send through the ESP. Open the plugin settings and check whether it has a tracking option.
Turn tracking off in the ESP
Log in to the provider and disable click tracking for the account or domain, using the steps in the Custom code tab. The plugin only sends the message, the rewrite happens at the provider.
Send a test
Use the plugin's email test, then inspect the link in the received message.
Check the sending path
Shopify's own notification emails use Shopify's sending setup. If you use an app such as Klaviyo, Mailchimp or another ESP for order emails, the tracking domain belongs to that app.
Fix it in that app
Open the app's sending domain or tracking settings and enable HTTPS on the branded link domain, or disable click tracking for the flow.
Check the email sending domain
In Settings > Email Services, review the dedicated sending domain and any link tracking domain you set up. Confirm the DNS records verify.
Test a workflow email
Send a test from a workflow to your own address and open the link in a private window. If it still warns, re-check the DNS records or turn off link tracking for that email.
Decide if you need click data
For password resets, receipts and booking confirmations, you rarely need click reports. Turn click tracking off for those.
If you keep it, brand the domain
Add the provider's CNAME records for a subdomain you own and wait for verification and certificate issue. Do not point the record at a different host.
Force HTTPS
Enable the HTTPS or SSL option for the tracking domain wherever the provider offers it.
Resend a test email
Old emails keep their old links. Send a new one to see the change.
Before
- Link goes to http://links.yourdomain.com/...
- Browser shows a certificate warning
- Customer closes the tab
After
- Link goes to https://links.yourdomain.com/... with a valid certificate, or goes straight to your site
- No browser warning
- Customer lands on your page
How to confirm it's fixed
- A freshly sent email contains links that start with https://
- The tracking domain shows a valid certificate that matches its name
- Clicking the link in a private window goes to your page with no warning
- The same check passes on a phone browser and in at least two email apps
- Every email type (lead, order, booking, reset) has been tested
How to prevent it happening again
How FunnelGuard handles this
Questions people ask
Why do my email links show a not secure warning?
Your email provider is probably rewriting links through a tracking domain that uses http or has a missing or mismatched SSL certificate. Hover over the link to see the domain, then check its certificate in the provider's tracking or link branding settings.
How do I turn off click tracking in SendGrid?
Go to Settings > Tracking and switch Click Tracking off. You can also disable it per message in the API with the tracking settings. New emails will then keep their original links.
Is it safe to turn off email click tracking?
Yes. Delivery is not affected, you just lose click reports from the provider. For password resets, receipts and confirmations, it is often the better choice.
Why does my branded link domain have an SSL error?
The certificate may not have been issued yet, or the CNAME record may be missing, wrong or removed. Re-check that the DNS records verify in the provider, then wait for the certificate to be issued.
Can an http tracking link hurt email deliverability?
It can. Insecure or mismatched links look suspicious to spam filters and to recipients, so they may lower trust in your messages. Using a branded HTTPS domain or no tracking avoids that.
Do old emails get fixed when I change the tracking setting?
No. Links are rewritten when the email is sent, so only new emails use the corrected setting. Send a fresh test to confirm.
How can I test if my email links are secure?
Send yourself the email, copy the link address and open it in a private window. You can also run curl -vI on the tracking domain to read its certificate details.
Related issues
- DLV-071Sender identity unverified in the ESPFix guide
- DLV-064SendGrid/Mailgun/Postmark/SES account suspendedFix guide
- DLV-075Email sent from ESP test/sandbox mode, never deliveredFix guide
- DLV-074Wrong ESP template ID after a template was deletedFix guide
- DLV-068Recipient on ESP suppression list after an old bounceFix guide
- DLV-065ESP API key revoked or rotated without updating the siteFix guide