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.
- Visitor clicks buttonClick is detected by a GTM trigger
- Tag builds the hit{{Click Text}} is not resolved
- GA4 receives eventValue stored as literal {{Click Text}}
- Reports and audiencesBreakdowns and filters are useless
The variable should be replaced before the hit leaves the browser.
Example: all clicks land in one placeholder row, so you cannot compare buttons. Numbers are illustrative.
How to check if your site has it
Open GTM PreviewGoogle Tag Manager
In Tag Manager click Preview, enter your site URL and perform the action, such as clicking the button.
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.
Open GA4 DebugViewGA4
In GA4 go to Admin > DebugView, select your device and click the event. Check each parameter value.
Search your reportsGA4
In Explore, create a free-form report with your custom dimension and look for rows containing { or }.
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
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.
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.
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.
Publish and retest
Submit the container version, then repeat the Preview test.
Check plugin settings
If a GA4 or form plugin has fields for event labels, make sure it supports tags. Replace any typed {{ }} with the plugin's own documented merge tag.
Search theme and snippet code
Look in header or footer script settings for dataLayer pushes or gtag calls containing braces as text.
Fix the data layer push
Push the actual value, for example the element text, not a template string. If you use a template engine, make sure it renders server side.
Check gtag calls
Make sure parameters are read from variables, not quoted strings that contain braces.
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
- 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
- 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 }
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.
Related issues
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide
- TRK-049Required event parameter missing (form_id, method)Fix guide
- TRK-052Parameter value exceeds 100 chars and is truncatedFix guide
- TRK-053Custom dimensions sent but not registered in GA4Fix guide
- TRK-047Event name typo (Generate_Lead vs generate_lead)Fix guide
- TRK-043generate_lead not sent on form submitFix guide