Troubleshooting

Outbound Link Click Tracking Not Working on Shopify

3 min read··By the TrackingCoder team
🔧

Common reasons outbound-link 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. Link opens in the same tab - When a user clicks a link without target="_blank", the browser starts navigating away immediately. The GTM tag may not have time to fire before the page unloads.
  4. Link uses JavaScript onclick navigation - If the link navigates via window.open() or location.href instead of a standard anchor, the Click URL variable won’t populate correctly.
  5. Link is in a dynamically loaded section - Links injected after page load (e.g., in a lazy-loaded footer or AJAX content) may not be detected by a trigger that only evaluates on DOM Ready.

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. Enable the built-in Click URL variable - In GTM → Variables → Built-In Variables, make sure Click URL is checked. Then use GTM Preview to confirm the variable populates when you click the link.
  5. Add a tag firing delay - If the page unloads before the tag fires, enable “Wait for Tags” on the Click trigger (set a max wait of 2000 ms) to give the tag time to execute before navigation.

Shopify-specific issues

Shopify’s link handling in product descriptions and blog posts is generally standard HTML. However, some themes use JavaScript to handle link clicks for smooth page transitions. If GTM’s Click URL doesn’t populate when you click a link, the theme may be intercepting the click event. Check GTM Preview to verify.

How to verify it’s working

  1. Open GTM Preview/Debug mode
  2. Navigate to your site
  3. Trigger the event (click the outbound link)
  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: outbound link tracking on shopify

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.