Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics event tracking - max string length

I am using Google Analytics for tracking events in my Android App. My question is: is there a limit for the string length in an event? I have found nothing about this topic on Googles devguide site.

Best regards!

Edit: I tried it whith a string with 2000 characters - and it works. If you need more (I don't believe), than try it first.

like image 983
Namenlos Avatar asked Sep 05 '12 12:09

Namenlos


People also ask

Does GA4 have hit limits?

Hit Limits in GA4In Universal Analytics (free) there is a hit limit of 10 million hits per account on a monthly basis. Google Analytics 4 is also free (there will be a paid version as well) and has no hit/events limits.

How many events can I send to Google Analytics?

Upgrade to Google Analytics 4 properties to measure web and app data. Google Analytics 4 properties are a free analytics solution with unlimited reporting for up to 500 distinct events that you can define using gtag. js or the Firebase SDKs.

What is TID in Google Analytics?

'tid' is used to denote the tracking ID. The value of this parameter should be the property ID of your Google Analytics property, where you want to send the payload data.

What are the three elements of event tracking in Google Analytics?

In Google Analytics Event Tracking is set up by attaching specific tracking code to the particular element (button, text link, etc.) that you want to track. There are three primary components to this code—category, action and label.


2 Answers

According to the official documentation,

  • Max Length for Event Category = 150 Bytes
  • Max Length for Event Action = 500 Bytes
  • Max Length for Event Label = 500 Bytes
  • For all other parameters, you can check in the same page.

Long text is automatically truncated according to this doc:

If any of the values are greater than the maximum lengths, they will automatically be truncated. If a multi-byte character exceeds the maximum length, the entire character will be truncated.

like image 55
Pang Avatar answered Sep 21 '22 15:09

Pang


@Pang's answer is correct for Universal Analytics (UA). But the latest version of Google Analytics isn't UA, it's Google Analytics 4 (GA4), and GA4 has different limits:

Logged item Limit
Distinctly named events 500 per app instance (app)

Automatically collected events, like first_open and in_app_purchase, and events you collect via enhanced measurement do not count toward the limits.
Length of event name 40 characters
Event parameters per event 25 event parameters
Length of event-parameter name 40 characters
Length of event-parameter value 100 characters
User properties 25 per property
Length of user-property names 24 characters
Length of user-property values 36 characters
Length of User-ID values 256 characters
like image 29
Daniel Kaplan Avatar answered Sep 25 '22 15:09

Daniel Kaplan