Hello,
content tag parsing seems to cut a part of my JS code:
The original code:
var _gaq = [['_setAccount', 'UA-XXXXXXXX-X'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
This is the output code:
var _gaq = ;
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
MODx Revo cuts a part of the code in the first line! If I put a space char between the brackets all is ok.
MODx version: 2.06pl
Greetings,
Martin