문제

I know that General GA data is sent by 1 pixel .gif request data. Where custom value [key, value] pair combined length had maximum fixed size. One limiting factor was IE older browsers that had maximum byte (not sure, but I assumed it was 2048 byte's for all values).

I assumed also that it was encoded in UTF-8 (variable-length multibyte encoding) where character can take 1-4 bytes in length. At some point in time I read that maximum character limit for custom value is 150 characters. At the time I did not need to know any better.

In case Universal GA the key part is stored in GA server and never sent. If I am not mistaken, each custom value has a separate request.

ga('create', 'UA-xxxxxxxx-x', 'xxx');
ga('set', {
    'dimension1': '...',
    'dimension2': '...',
    'dimension3': '...',
    'dimension4': '...',
    'dimension5': '...'
});
ga('send', 'pageview');

My question is how meany bytes/characters '...' can have in case of Universal GA?

도움이 되었습니까?

해결책

Encoded custom dimension value may not exceed 150 Bytes.

  • Best case: 150 characters
  • Worst case : 37 characters

Reference: link

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top