Addslashes breaks JS
-
Hi,
Thank you for creating this great plugin. We’ve been using it for quite a while but ran into a serious problem some days ago.
In the plugins settings page under advanced settings you can add some custom code. Like this:
_gaq.push(['_setSiteSpeedSampleRate', 90]);
When you save (1 time) it all still works. If you save the options again this happens:
_gaq.push([\'_setSiteSpeedSampleRate\', 90]);
and then
_gaq.push([\\'_setSiteSpeedSampleRate\\', 90]);
Which breaks the rest of the JS on the page.
http://wordpress.org/plugins/google-analytics-for-wordpress/
- The topic ‘Addslashes breaks JS’ is closed to new replies.