• Resolved giuseppehex

    (@giuseppehex)


    Hey,

    Half way through a test it looks like the JavaScript for the plugin has stopped working.

    We were using custom JavaScript events to do some tracking using the provided nab.convert(x, x) function.

    However, from the console I can now see the following errors:
    Uncaught ReferenceError: nab is not defined
    TypeError: nab.convert is not a function

    We’re not running any caching or JavaScript optimisation plugins at the moment on the site and we’ve got the server caching settings disabled. We are running the DNS via CloudFlare and I have tried disabling our cookie plugin but no luck either.

    I’m a little stumped as to why this would stop working. We can see that the events stopped being tracked on the 16th August, if that is of any relevance, but as far as I can see from our side, no one made any changes to the test, the pages/variants, and we hadn’t performed any maintenace/updates around this time.

    • We’re using the latest version of the plugin
    • It’s compatible with out WP version
    • We’re using the right PHP version

    Would appreciate a speedy response on this if possible.

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi, Giuseppe. Could you please share with us the URL of your tested page? (If you don’t want to publicly share it, please send us an email to support at nelio software dot com).

    Thread Starter giuseppehex

    (@giuseppehex)

    Hey David,

    Thanks for your speedy reply, I’ve dropped you an email.

    I’ll leave this ticket open so I can add an update once resolved in case others experience something similar.

    Plugin Author David Aguilera

    (@davilera)

    For anybody else experiencing this issue: keep in mind that the global object nab might not be available because our tracking script may not be included in the current page. This occurs, for example, when previewing variants. So you gotta make sure that, whenever you want to use nab methods, you first make sure that nab exists by wrapping it in an if statement like this:

    if ( window.nab ) {
    nab.blahblah
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.