As far as I know, there is no limit in our code. It sounds like GA automatically truncates strings that are longer than 2048 bytes: https://developers.google.com/analytics/devguides/collection/protocol/v1/reference#maxlength