• 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

    (@omerida)

    So, tracing through the cause further, it looks like SimpleContentExperimentsPlugin::head_javascript is not being called. I’m investigating further…

    Thread Starter omerida

    (@omerida)

    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

    (@lonfirebrand)

    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

    (@lonfirebrand)

    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.