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.
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.
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.
'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.
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.
According to the official documentation,
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.
@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 |
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With