Troubleshooting

Email Click Tracking Not Working on WordPress

3 min read··By the TrackingCoder team
🔧

Common reasons email-click tracking doesn’t fire

  1. GTM container not published - You imported the container but didn’t click Submit → Publish.
  2. GTM snippet not installed on your site - The GTM code needs to be in your site’s <head> and <body>.
  3. Email is plain text, not a mailto: link - If the address renders as contact@yoursite.com without an <a> wrapper, there’s nothing for GTM to detect. The browser doesn’t treat it as clickable.
  4. Address is anti-spam obfuscated - Common patterns: contact [at] yoursite [dot] com, JavaScript that assembles the address from string fragments, base64-encoded mailto links. Crawlers can’t scrape these - and neither can a standard click trigger.
  5. Click handler hijacks the link - Some sites attach an onclick that opens a contact form instead of the user’s email client. The mailto: never opens, so even if GTM sees the click, the user’s outcome differs from “send email started.”
  6. User has no default email client - On many devices clicking a mailto: does nothing because no default mail handler is configured. The click still fires (so GTM logs the event) but the user gets a frustrating no-op. Worth pairing email-click tracking with a “copy to clipboard” fallback button.

Step-by-step debugging checklist

  1. Verify GTM is installed - Visit your site, right-click → View Page Source, search for “GTM-”. If you don’t see it, GTM isn’t installed.
  2. Check GTM Preview mode - In GTM, click Preview. Navigate your site and trigger the event. Look for your tag in the Tags Fired section.
  3. Check the trigger - If the tag shows as “Not Fired”, click on it to see which trigger conditions aren’t met.
  4. Inspect the email element - Right-click → Inspect. Confirm it’s <a href="mailto:address@yoursite.com">. If it’s a <span> or text node, you need to either wrap it in a mailto: link or use a different tracking approach (click on a “Copy email” button, for instance).
  5. In GTM Preview, click the email link - Click URL should start with mailto:. If empty, the link is anti-spam obfuscated and a Click URL trigger won’t work - target by Click Element class or data attribute instead.

How to verify it’s working

  1. Open GTM Preview/Debug mode
  2. Navigate to your site
  3. Trigger the event (click the email address)
  4. Check the GTM debug panel - your tag should appear under “Tags Fired”
  5. Check GA4 DebugView (GA4 → Admin → DebugView) to confirm the event arrived

Still didn’t work?

Our team can help. Describe what’s happening and we’ll get back to you within 24 hours.

Still didn't work? Report this issue

Fill in the details below and our team will review it within 3-5 business days. We aren't obliged to refund - but if we genuinely can't make it work, we may credit you back. Either way, your credits remain usable on a different event or site.

No need to type https:// - we'll add it for you.

Min 20 characters (0/20).

Context automatically included: email click tracking on wordpress

Skip the manual setup

TrackingCoder detects your CMS and plugins automatically, then generates ready-to-use tracking code. No more adapting generic tutorials - get code tailored to your exact setup in under 2 minutes.

Try TrackingCoder Free →

2 free credits on signup. No card required.