WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics for WordPress
Addslashes breaks JS (1 post)

  1. martijnh
    Member
    Posted 6 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic