Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
We have been running the AppMeasurement Tag in parallel to the H26 SC Tag. We are aware that there are image request character limitations in IE and so far this has been a minimal issue for us. However, we noticed recently that within IE9 and IE10 that the AppMeasurement Tag is seemingly be "re-arranged" and then truncated (some items are being placed at the top of the image request as opposed to the bottom). We are mainly attributing the truncation to the size of our g (url) and r (referrer) due to a large amount of query string parameters . Has anyone experienced similar issues?
7 REPLIES 7
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
Adobe is suggesting the following 1. IE9 and IE10 have a lower character threshold than other browsers including IE8 2. The light JS is not meant for site that are passing large amounts of data in to the image request. Not sure about this.
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
Thanks for the update around IE9 and IE10. I wonder why they went to lower character limits in GET requests. I was assuming it was the other way around. The re-arrangement of params should be OK. Tracking should still work. For a small improvement.. You should be able to re-set "s.referrer" directly in an Extension if you would like to add logic to chop off the querystring part of this when it is large. Most likely there is a way to do the same thing for "g" (url)
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
Hey Ty, thanks for the response. I am assuming this would be a java script extension. Could you give me a hand with the coding? Would it be something like this? function removeQueryString() { return s.referrer.split("?")[0]; }
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
I don't remember if s.referrer is set or if it is just something you can use to override the default. Here is an update to your code: // In the "doPlugins" you could do this function removeQueryString(a) { return a.split("?")[0]; } // truncate s.referrer to reduce pixel size s.referrer = removeQueryString(document.referrer);
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
Hey Ty, This works perfectly. Thanks! How can we do this for g? I am hoping it would be something similar. Just not sure how g is being set within the s_code. // truncate s.referrer to reduce pixel size s.pageURL = removeQueryString(document.url);
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
I think you're right with s.pageURL.. Your code looks good, except for the document.URL should be upper-case "URL" s.pageURL = removeQueryString(document.URL);
Highlighted

Truncated Image Request - AppMeasurement for JavaScript Tag

Tealium Employee
Works! Thanks Ty. Now I can only hope that it works with the Lite JS Tag.