Custom serviceworker scope and name

You can set custom serviceworker name and registration scope. It will allow to use multiple serviceworkers for your web site.

sdk.startInstall({
    appId: "YOUR-APP-ID-HERE",
    sw: {
        url: '/sw.enot.js',
        options: {scope: '/ntx'}
    }
})

Important restrictions

Once you are setting scope through options variable you should set url variable. Otherwise setting url without options is okay.

You can use any scope (even unexisting) but you will loose availability of "Last activity" targeting because fetch events from users will not be triggered on root scope.