The Aimtell Service Worker enables the handling of delivering notifications to your subscribers. Without it, you miss out on sending your subscribers notifications no matter where they are or what they are doing.
Service Workers (SW) are relatively new features made available to all modern browsers as part of the Progressive Web App initiative. The goal behind the SW is to provide functionality previously only made available to mobile apps such as Push Notifications and offline browsing.
The reason why these files must be uploaded to the site, and not uploaded via code or through a tag manager, (e.g. https://www.winzip.com/aimtell-worker.js, https://www.legacy.com/aimtell-worker.js, https://www.blinds.com/aimtell-worker.js) is two-fold:
- This file actually runs completely detached from the DOM / your website visitor's “session”. Even once they’ve left your site the SW still runs. This is how we’re able to deliver a notification to the individual even if the phone is in their pocket, or if they haven’t been to your site in weeks and are currently browsing Amazon.com. Had it been simply a code on the site, it would only be able to be initiated once someone is on your site, rather than the powerful ability to deliver pushes at any time, any place.
- The browser enforces this as a security measure that essentially validates you own the domain. Had this not been in place, someone could in theory find an XSS Vulnerability (Wikipedia Article) which in turn could become an immense security issue because they could initiate a malicious SW.
- Typically an XSS vulnerability allows a specifically crafted URL to grab some sensitive data of a visitor. This is already terrible of course and one of the biggest security issues the internet sees.
Why can't I upload the SW as a Tag via my TagManager?
However, this limitation, which is not specific to just Aimtell and is enforced by the browser itself, is actually a good thing for the web as a whole. See the reasons above for more on why you need a Service Worker in general.