Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Email click tracking links with SSL errors: how to fix it

DLV-073Medium impactDetectedBy FunnelGuardPublished Updated
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

Where the journey breaks
  1. Form or checkout submittedCustomer completes the action
  2. Email deliveredConfirmation arrives in the inbox
  3. Link clickedLink points to http or mismatched tracking domain
  4. Redirect to your pageNever reached
  5. Confirmation, login or paymentNever completed

The email arrives, but the rewritten link fails before the customer reaches your site.

Clicks that reach your siteExample numbers
Clicks that reach your site (example)Valid HTTPS tracking link: 95 clicks out of 100; Link with SSL warning: 40 clicks out of 100036739540Valid HTTPS tracking …Link with SSL warningclicks out of 100

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

Check your email links by hand
  1. 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.

  2. 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://.

  3. 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.

  4. 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.

Test the tracking domain certificatebash
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 5

How to fix it

Fix by email provider setting
  1. 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.

  2. 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.

  3. 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 TrackLinks on each message.

  4. 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.

Fix it in order
  1. Decide if you need click data

    For password resets, receipts and booking confirmations, you rarely need click reports. Turn click tracking off for those.

  2. 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.

  3. Force HTTPS

    Enable the HTTPS or SSL option for the tracking domain wherever the provider offers it.

  4. Resend a test email

    Old emails keep their old links. Send a new one to see the change.

Email link before and after

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

Confirmation checks
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: email_content links_ok: failing and insecure http links.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.