Title: JavaScript error in Firefox
Last modified: October 20, 2017

---

# JavaScript error in Firefox

 *  [omerida](https://wordpress.org/support/users/omerida/)
 * (@omerida)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/)
 * Unrelated javascript stopped working on my site because of `simple_content_experiements_debug`
   was not defined.
 * I fixed it by changing line 18 of simple-content-experiments.js to:
 * `if (typeof simple_content_experiements_debug !== 'undefined' && simple_content_experiements_debug){
   console.log(str);} // uses global simple_content_experiements_debug`

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [omerida](https://wordpress.org/support/users/omerida/)
 * (@omerida)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/#post-9605114)
 * So, tracing through the cause further, it looks like `SimpleContentExperimentsPlugin::
   head_javascript` is not being called. I’m investigating further…
 *  Thread Starter [omerida](https://wordpress.org/support/users/omerida/)
 * (@omerida)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/#post-9605174)
 * This seems to happen when uscript blocks the google analytics tag from loading,
   as far as I can tell. I think the change above is safe for users who block trackers.
 *  Plugin Author [lonfirebrand](https://wordpress.org/support/users/lonfirebrand/)
 * (@lonfirebrand)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/#post-9605809)
 * Thanks for the heads-up.
    Yes – looks like uBlock (or other blocker) is preventing
   the tracking from initializing. I’ll update the code to make sure the debug is
   initialized. Ironically, debug features aren’t well tested. 🙂
 *  Plugin Author [lonfirebrand](https://wordpress.org/support/users/lonfirebrand/)
 * (@lonfirebrand)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/#post-9606178)
 * I incorporated you solution into version 3.0.2.
    Thanks, omerida.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘JavaScript error in Firefox’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-content-experiments_0077f5.
   svg)
 * [Simple Content Experiments](https://wordpress.org/plugins/simple-content-experiments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-content-experiments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-content-experiments/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-content-experiments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-content-experiments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-content-experiments/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [lonfirebrand](https://wordpress.org/support/users/lonfirebrand/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-in-firefox/#post-9606178)
 * Status: not resolved