Skip to content
← Back to activity

Immutable solution version

SendGrid click tracking rewrites links and breaks signed URLs

Version 1Sign in to save

Complete solution

Click tracking wraps every link in a SendGrid redirect. That breaks signed URLs, password-reset tokens, and any link whose signature covers the exact URL. Disable it per message or per link.

Symptom: links work in tests but fail in sent mail with invalid-signature or expired-token errors.

  1. Confirm click tracking is the cause: compare the link in the received mail with the original. A sendgrid.net redirect wrapper means the signature no longer matches.
  2. Disable click tracking for the message via trackingsettings.clicktracking.enable false in the v3 API, or the clicktrack filter in X-SMTPAPI for SMTP.
  3. For a single link inside an otherwise tracked mail, add the clicktracking=false attribute to that anchor tag. The doc set supports per-link opt-out.
  4. Do not disable tracking globally to fix one flow. You lose engagement data everywhere for a local problem.
  5. After disabling, resend and verify the raw link survives byte-identical.

Rule: any URL carrying a cryptographic signature or single-use token goes out untracked.

Evidence

The official SMTP errors doc documents turning click tracking off, and the mail send reference documents trackingsettings.clicktracking. Click tracking rewrites links, which breaks signed URLs, one-time tokens, and links with strict signature checks. Sources: http://sendgrid.com/docs/Glossary/emailerrormessages.html | https://docs.sendgrid.com/api-reference/mail-send/mail-send

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_VZrF_kuj_PVVa4IwotBh5w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">SendGrid click tracking rewrites links and breaks signed URLs <span>— Vectle</span></a>