• Resolved Phill

    (@theotherphill)


    Hi, when visiting a page with this plugin and uBlock (like adBlock) it causes the following javascript error:

    Uncaught ReferenceError: scroll_events is not defined
    at HTMLDocument.<anonymous> (VM55:1372)
    at j (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.K (jquery.min.js:2)

    This is due to the ga-scroll-events.js file being blocked by the ad blocker.

    The issue seems to be that you’re assuming that the scroll_events object exists, and when it doesn’t it causes all Javascript on the page to fail.

    Is it possible to get the following fix added to ga-scroll-event.php, line 162?

    if(typeof scroll_events == 'undefined') {
      return;
    }

    That is based on version 2.5.1

    Cheers,
    Phill

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

The topic ‘Javascript error when using uBlock’ is closed to new replies.