Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 parameter shows {{Click Text}} placeholder: how to fix it

TRK-051Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

In Google Tag Manager (GTM), double curly braces such as {{Click Text}} are a reference to a variable. When GTM builds a tag, it swaps the reference for the real value, for example the text of the button someone clicked. If the swap fails, the braces and name travel to GA4 as a plain string.

Why it costs you leads or sales

The impact is medium: you still get event counts, but the detail is useless. You cannot tell which button, form or offer produced a lead. Reports grouped by button text or form name collapse into one meaningless row.

Where the placeholder gets stuck
  1. Visitor clicks buttonClick is detected by a GTM trigger
  2. Tag builds the hit{{Click Text}} is not resolved
  3. GA4 receives eventValue stored as literal {{Click Text}}
  4. Reports and audiencesBreakdowns and filters are useless

The variable should be replaced before the hit leaves the browser.

Button breakdown before and afterExample numbers
Button breakdown before and after (example){{Click Text}}: 300 events; Get a quote: 0 events; Book a call: 0 events011523030000{{Click Text}}Get a quoteBook a callevents

Example: all clicks land in one placeholder row, so you cannot compare buttons. Numbers are illustrative.

How to check if your site has it

Find unresolved placeholders
  1. Open GTM PreviewGoogle Tag Manager

    In Tag Manager click Preview, enter your site URL and perform the action, such as clicking the button.

  2. Inspect the GA4 event tagGoogle Tag Manager

    In the Tag Assistant window select the click event, open the GA4 tag and read the Values tab. A value with braces in it means it was not resolved.

  3. Open GA4 DebugViewGA4

    In GA4 go to Admin > DebugView, select your device and click the event. Check each parameter value.

  4. Search your reportsGA4

    In Explore, create a free-form report with your custom dimension and look for rows containing { or }.

  5. Check the page source and data layerCustom code

    In the browser console type dataLayer and look for pushes whose values contain braces.

How to fix it

Fix by where the placeholder comes from
  1. Enable the built-in variable

    Go to Variables > Configure and tick Click Text (and Click ID, Click URL if needed). A variable that is not enabled cannot resolve.

  2. Use the variable picker

    In the GA4 event tag, click the plus (brick) icon next to the parameter value and choose the variable instead of typing it. Check the name matches exactly, including capitals and spaces.

  3. Avoid braces in plain text fields

    If the field does not accept variables, such as some trigger names or notes, use a different field or a Custom JavaScript variable.

  4. Publish and retest

    Submit the container version, then repeat the Preview test.

Push a real value to the data layerjavascript
document.querySelectorAll('[data-track]').forEach(function (el) {
  el.addEventListener('click', function () {
    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: 'cta_click',
      cta_text: el.textContent.trim()
    });
  });
});

How to confirm it's fixed

Confirmation checks
  • GTM Preview shows the real text in the GA4 tag Values tab
  • DebugView shows the correct parameter value on the event
  • No braces appear in new rows of your report after publishing
  • Different buttons produce different values
  • Audiences or conversions that filter on the parameter now match

How to prevent it happening again

Prevention habits
  • Always insert variables with the picker, never by typing
  • Test every tag change in Preview before publishing
  • Name variables clearly and avoid renaming ones in use
  • Keep a short list of key events and their expected parameter values
  • Add a monthly report check for values containing { or }
What your data looks like

Before

  • Parameter value is {{Click Text}}
  • All buttons grouped together
  • Filters on the value never match

After

  • Parameter value is the real button text
  • Each button reported separately
  • Audiences and conversions work

How FunnelGuard handles this

FunnelGuard does not check for this yet. It has no rule that looks for unresolved placeholders such as {{Click Text}} inside parameter values. It could be added as a future check.

What FunnelGuard does cover nearby: a robot visitor runs your real journeys on a schedule and checks that the tracking hits to GA4 and other platforms are sent at each step, and that test leads reach your inbox and CRM. That helps if the event stops firing, but it does not tell you whether a parameter value is a placeholder.

Questions people ask

Why does my GA4 event show {{Click Text}} instead of the button text?

The variable reference was sent as plain text because Google Tag Manager did not resolve it. Typical causes are a typo in the name, the built-in variable not being enabled, or braces typed into a field that does not accept variables.

How do I fix {{Click Text}} showing in GA4?

In GTM, enable Click Text under Variables > Configure, then pick it from the variable picker in the GA4 event tag's parameter field. Publish the container and confirm the value in Preview and DebugView.

How do I find unresolved variables in GA4?

Use GA4 DebugView to inspect event parameters, and an Explore report on your custom dimensions to look for values containing curly braces. GTM Preview also shows the final values each tag will send.

Will GA4 fix old data that contains {{Click Text}}?

No. GA4 does not edit events already collected. Only new events will carry correct values after you publish the fix, so note the date in your reporting.

Can template placeholders come from my website instead of GTM?

Yes. A plugin, theme or custom script can push a data layer value or call gtag with a template string that was never rendered. Check the dataLayer in the browser console to see whether the braces come from the site.

Does FunnelGuard detect {{Click Text}} in GA4 parameters?

No, not yet. FunnelGuard has no rule for unresolved placeholders in parameter values. It does check that tracking hits fire during your journeys, so use GTM Preview and DebugView for this specific problem.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.