在Google Analytics编码之前或之后,Google Analytics事件字段的500字节限制是否适用?

时间:2017-06-15 20:21:13

标签: javascript google-analytics

我只想知道在对象获取url编码之前或之后是否应该检查与任何特定事件字段(如类别,操作或标签)对应的字符串的长度。例如,以下json对象的长度为229字节/字符: {"atracks":[{"codec":"mp3","idx":1,"lang":"und"},{"codec":"ac-3","idx":2,"lang":"und"}],"duration":634,"mime":"video/mp4","vtracks":[{"codec":"avc1.640029","idx":0}],"mimeType":"video/mp4; codecs=avc1.640029, mp3","canPlay":true}

但是一旦url编码,它的长度为404字节: 'el=%7B%22atracks%22%3A%5B%7B%22codec%22%3A%22mp3%22%2C%22idx%22%3A1%2C%22lang%22%3A%22und%22%7D%2C%7B%22codec%22%3A%22ac-3%22%2C%22idx%22%3A2%2C%22lang%22%3A%22und%22%7D%5D%2C%22duration%22%3A634%2C%22mime%22%3A%22video%2Fmp4%22%2C%22vtracks%22%3A%5B%7B%22codec%22%3A%22avc1.640029%22%2C%22idx%22%3A0%7D%5D%2C%22mimeType%22%3A%22video%2Fmp4%3B%20codecs%3Davc1.640029%2C%20mp3%22%2C%22canPlay%22%3Atrue%7D'

0 个答案:

没有答案