Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 parameter value over 100 characters is truncated: how to fix

TRK-052Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Every GA4 event can carry parameters, which are extra details such as form_id, button_text or page_title. GA4 caps the length of each parameter value. For standard properties the limit is 100 characters for custom event parameters. If your tag sends 140 characters, GA4 stores only the first 100 and drops the rest. It does not show an error.

Why it costs you leads or sales

The business impact is usually low, but it can quietly damage reports. Truncated values can make two different items look identical, split one item into several rows, or break filters that match on the full text. If you build audiences or conversions on a parameter value, a cut-off string may stop matching, so the audience stays small or a key event is not counted.

Where a long value gets cut
  1. Visitor clicksButton or link with long text or URL
  2. Tag sends eventParameter value is 140 characters
  3. GA4 stores valueKeeps the first 100 characters only
  4. Reports and audiencesFilters on the full text no longer match

The tag sends the full text, but GA4 keeps only the first 100 characters.

Matching rows before and after truncationExample numbers
Matching rows before and after truncation (example)Distinct values sent: 3 rows; Distinct values in GA4: 1 rows01231Distinct values sentDistinct values in GA4rows

Example: 3 different long values that differ only after character 100 collapse into 1 row once truncated.

How to check if your site has it

Find truncated parameter values
  1. Open DebugView

    In GA4 go to Admin > DebugView, turn on debug mode (Tag Assistant or GTM Preview) and trigger the event.

  2. Read the parameter value

    Click the event and check each parameter. Values that end abruptly at about 100 characters are truncated.

  3. Compare with what the tag sends

    In GTM Preview, open the tag and compare the sent value with what DebugView shows. In the browser, use the Network tab and look at the request to google-analytics.com/g/collect.

  4. Check a report

    Register the parameter as a custom dimension, then in Explore list the values with a count. Many values of exactly 100 characters point to truncation.

How to fix it

The fix is to send less. Pick the part of the value you actually need and send only that. Do not rely on GA4 to shorten it for you, because it cuts from the end.

Shorten the value where it is created
  1. Add a Custom JavaScript variable

    Go to Variables > New > Custom JavaScript and return a trimmed version of the source variable (see the code below).

  2. Use it in the GA4 event tag

    In the GA4 event tag, replace the raw variable in the parameter's value with the new variable.

  3. Test in Preview

    Run Preview and confirm the value is 100 characters or fewer.

GTM Custom JavaScript variable: trim to 100 charactersjavascript
function() {
  var v = {{Click Text}};
  if (!v) return undefined;
  v = String(v).replace(/\s+/g, ' ').trim();
  return v.substring(0, 100);
}

How to confirm it's fixed

Confirmation checklist
  • DebugView shows the full short value with no abrupt cut-off
  • No parameter value is longer than 100 characters in GTM Preview
  • The Explore report shows distinct values you can tell apart
  • Audiences or conversions that use the parameter now match
  • The event still fires once per action
Parameter value in GA4

Before

  • Full URL or text sent, 140 characters
  • GA4 keeps the first 100
  • Different items look the same

After

  • Short slug or ID sent, under 100 characters
  • GA4 stores the whole value
  • Each item is reported separately

How to prevent it happening again

Prevention habits
  • Define a short naming scheme for parameter values before adding new events
  • Trim or hash free text in one shared GTM variable
  • Never send raw form field values or full query strings as parameters
  • Test every new event in DebugView before publishing
  • Review parameter values in Explore after each tracking change

How FunnelGuard handles this

FunnelGuard does not check parameter value length yet. It is a possible future check. Today FunnelGuard runs your real journeys on a schedule, such as a lead form or checkout, and checks that the tracking hits for GA4, Google Ads, Meta and other platforms are sent at each step. That helps you notice when an event stops firing, but it does not tell you that a value inside it was cut to 100 characters.

Questions people ask

What is the character limit for GA4 event parameter values?

For standard GA4 properties, a custom event parameter value can be up to 100 characters. Anything longer is cut off. Some built-in parameters and GA4 360 properties have different limits, so check Google's current collection limits page.

Why is my GA4 parameter value cut off?

Your tag is probably sending a string longer than 100 characters, such as a full URL, button text or a product description. GA4 keeps the first 100 characters and drops the rest without showing an error.

How do I see if GA4 is truncating my event parameters?

Turn on DebugView, trigger the event and read the parameter values. If a value ends abruptly at about 100 characters, it is truncated. Compare it with what the tag sends in GTM Preview or the Network tab.

How do I shorten a parameter value in Google Tag Manager?

Create a Custom JavaScript variable that returns the source value with substring(0, 100), then use that variable in your GA4 event tag. Better still, send a short ID or label instead of raw text.

Does GA4 show an error when a parameter value is too long?

No. GA4 accepts the event and silently stores the shortened value. You only find out by inspecting the data in DebugView or in reports.

Does truncation affect my conversions?

The event itself still counts. But if a conversion, audience or filter depends on matching the full parameter value, the truncated text may no longer match and those items can be missed.

Does FunnelGuard detect GA4 parameter truncation?

No. FunnelGuard does not check parameter value length yet. It does check that GA4 and other tracking hits are sent during your real journeys, so you can use it alongside manual DebugView checks.

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.