Google Analytics by Yoast
Addslashes breaks JS (1 post)

  1. martijnh
    Posted 1 year ago #


    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic