Hi
Have been using Piwik for some time now. I recently added the following jQuery code to a website
$(document).ready(function () {
var replaced = $("body").html().replace(/my_val/g,'replace_val');
$("body").html(replaced);
});
The code globally replaces ‘my_val’ with ‘replace_val’ within the body of a web page once the document has completed loading. By design, all instances of ‘my_val’ are within links, e.g., http://www.mysite.com/page.php?myvar=my_val
Now, in IE, the website loads, goes blank and the page source is replaced with
<script src='http://mypiwikstatsdomain/piwik.js' type='text/javascript'></script>
The above is the only thing visible when viewing the page source. In Firefox the page simply hangs.
When the jQuery code is removed the page loads as expected. For now I have removed Piwik from the site but would appreciate any insight into whether there is something I could do (have only tried deactivating plugins so far).
Regards.