Using jQuery properly in Google Tag Manager

You probably shouldn't be using jQuery in GTM script tags, but if you must, here's how to do it properly.

Newest

Possible security issues when caching

I ran into this problem while I was working on an EPiServer solution at work some time ago. The website had a control that generated links for different language branches in the solution. The control read a query string parameter from the current url to generate the links. It also cached all the links when done. All well so far. When a user visited the site, the control checked if the list of links where in the cache, and if so, served them out to the user.