On this page
What this issue is
A CTA (call to action) is the button or link you want people to click, such as "Book a call" or "Get a quote". A click event is a small message your site sends to analytics and ad platforms when that click happens. Examples are a GA4 event like cta_click or a Meta Lead event.
- Visitor clicks CTAButton works as normal
- Trigger firesSelector or rule no longer matches
- Hit sent to platformNo request leaves the browser
- Report and ad optimisationClick never counted
The click works for the visitor, but the tracking step fails, so the platforms never hear about it.
Why it costs you leads or sales
Example: 400 real CTA clicks, but only 90 recorded after a redesign changed the button class. Numbers are illustrative.
How to check if your site has it
Open the page in a private window
Accept cookies if a banner appears, so consent is not the cause.
Open DevTools and the Network tab
Press F12 (Cmd+Option+I on Mac), choose Network, tick Preserve log and clear the list.
Click the CTA
If the CTA opens a new page, Preserve log keeps the requests.
Filter for the platform request
Type
collectfor GA4,facebook.com/trfor Meta, orgoogleads/doubleclickfor Google Ads. Look for the event name in the request payload.Cross-check in a debug view
Use GA4 DebugView, Tag Manager Preview mode or Meta's Test Events tab to see whether the event arrives.
How to fix it
| Cause | What you see | Fix |
|---|---|---|
| Button class or ID changed | Trigger never matches in Preview | Update the trigger selector |
| Button rebuilt as a new element | Click Classes differ from before | Match on a stable attribute |
| Tag paused or unpublished | Tag not listed in Preview | Enable and publish the container |
| Consent not granted | Tag shows blocked by consent | Check consent settings and tag requirements |
| Click opens a new page before the hit leaves | Hit cancelled in Network tab | Use a tag that sends reliably, or delay navigation slightly |
Open Preview mode
Click Preview, enter your URL and click the CTA. Check the Summary for a Click event.
Inspect the click variables
Under Variables, enable the built-in Click Classes, Click ID, Click Text and Click URL. Note what the button actually contains.
Fix the trigger
Edit your Click trigger (All Elements or Just Links). Use a condition such as Click ID equals your button ID, or Click Element matches CSS selector.
Publish
Submit and publish the container, then retest.
Check what changed
A theme, page builder or plugin update can change button markup. Inspect the button with right-click, then Inspect.
Add a stable class
In the block or page builder's advanced settings, add a class such as cta-primary and use it in your trigger.
Check your tracking plugin
If a plugin handles events, open its event settings and confirm the rule still points to the right element.
Check theme updates
Theme changes can rename button classes. Inspect the button in the live store.
Check the tracking setup
Review Customer events under Settings, or your tag manager container, and confirm the rule matches the current markup.
Add a data attribute
Add
data-track="cta"to the button in the theme code and trigger on it.
Give the button a custom attribute
Select the button, open Element settings, add a custom attribute such as data-track with value cta.
Match it in your tag
Use that attribute in your Tag Manager trigger, then publish the Webflow site.
Add a listener
Send an event on click, using a stable selector. See the snippet below.
Test it
Click the button and confirm the request in the Network tab.
document.addEventListener('click', function (e) {
var el = e.target.closest('[data-track="cta"]');
if (!el) return;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'cta_click',
cta_text: el.textContent.trim(),
cta_url: el.href || ''
});
});How to confirm it's fixed
- Preview mode shows the click event and the tag firing
- The Network tab shows the request with the right event name
- GA4 DebugView or Meta Test Events shows the event arriving
- Every CTA on the page has been tested, on desktop and mobile
- The event appears in standard reports after processing time
Broken
- Trigger depends on a class that changed
- No request in the Network tab
- Event counts drop with no explanation
Fixed
- Trigger uses a stable attribute
- Request visible on every click
- Event counts match real behaviour
How to prevent it happening again
- Use dedicated data attributes for tracking, not styling classes
- Retest tracking after every theme, builder or plugin update
- Keep a list of your key events and the pages they run on
- Use Tag Manager versions and add notes on changes
- Run an automated check on a schedule so you hear about breaks quickly
How FunnelGuard handles this
Questions people ask
Why is my CTA click event not showing in GA4?
The most common reasons are a trigger that no longer matches the button, an unpublished Tag Manager container, or consent blocking the tag. Check Preview mode, then look for the request in the browser's Network tab. If no request is sent, the problem is on your site, not in GA4.
How do I test if a button click is being tracked?
Open DevTools, go to the Network tab, click the button and filter for your platform's request, such as collect for GA4. You can also use Tag Manager Preview mode, GA4 DebugView or Meta Test Events to see the event arrive.
Why does my Google Tag Manager click trigger not fire?
The trigger conditions probably do not match the clicked element. Enable the built-in Click variables, click the button in Preview mode and compare the real Click Classes, ID and Text with your trigger rules. Clicks on child elements, like an icon inside a button, can also cause misses.
Why did my click tracking stop after a website redesign?
Redesigns often change button classes, IDs or structure, and triggers built on them stop matching. Update the trigger and switch to a stable data- attribute so future design changes do not break it.
Can a page redirect stop the click event from being sent?
Yes. If the click opens a new page immediately, the browser can cancel the tracking request before it completes. Use a tag type that sends reliably, or trigger on a data layer event and avoid delaying the visitor longer than necessary.
Does declining cookies stop CTA click tracking?
It can. Many setups only fire analytics and ad tags when consent is granted. Test with consent accepted to check the event itself, and separately confirm your consent settings behave as intended.
How can I be alerted when a CTA click event stops firing?
Run a scheduled test that clicks the button and checks the outgoing tracking request. FunnelGuard does this with network event rules and alerts you with a screenshot and a likely cause when the hit is missing.
Related issues
- CNV-096CTA uses JavaScript that errors so nothing happensFix guide
- CNV-094CTA button not clickable (covered by another element)Fix guide
- CNV-098CTA opens in a new tab and loses UTMsFix guide
- CNV-099Button text says one thing, page delivers anotherFix guide
- CNV-106Button styled as disabled but active (or vice versa)Fix guide
- CNV-111Ad landing page URL redirects and strips UTMs/gclidFix guide