'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.



Solution 1:[1]

Note that Google Analytics will give a 414 error and tell you that your string is too long, when in fact you've sent a malformed string. Just take a modest string and insert a few spaces to see for yourself.

Solution 2:[2]

@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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Wytze
Solution 2 Daniel Kaplan