Push Notification Scripts
Push subscriber collection requires script tags and (in some cases) service worker files on your landing page. What you need to do depends on your lander type and collection mode.
Quick Reference
| Lander Type | Mode | Script Tags | SW Files |
|---|---|---|---|
| Lander Uploads (No Redirect) | Any | Automatic | Automatic |
| Lander Uploads (With Redirect) | Notix Only | Paste 1 script in your HTML | Automatic |
| Lander Uploads (With Redirect) | Parallel | Paste 2 scripts in your HTML | Automatic |
| External | Notix Only | Paste 1 script in your page | Host sw.enot.js on your domain |
| External | Parallel | Paste 2 scripts in your page | Host both SW files on your domain |
| Blog (No Redirect) | Any | Automatic | Automatic |
| Blog (With Redirect) | Any | Automatic | Automatic |
| Internal (No Redirect) | Any | Automatic | Automatic |
| Internal (With Redirect) | Any | Automatic | Automatic |
Step 1 β Configure Push Settings
Go to Push Notifications > Settings and set up your collection mode:
- Notix-Only β uses only Notix for subscriber collection
- Parallel β uses Tacoloco as the primary prompt, then registers Notix in the background after permission is granted
Save your Notix App ID and (if using Parallel mode) your Tacoloco JS URL and upload the Tacoloco service worker file.
Step 2 β Add Scripts (if needed)
No Redirect landers (Lander Uploads, Blog, Internal)
No action needed. Scripts are injected automatically.
Lander Uploads (With Redirect)
You need to paste the script tags into your HTML file. Go to Lander Uploads, edit your lander HTML, and add the scripts before </head>.
Notix-Only Mode
<script>
var s = document.createElement("script");
s.src = "https://notixio.com/ent/current/enot.min.js";
s.onload = function(sdk) {
sdk.startInstall({ "appId": "YOUR_NOTIX_APP_ID", "loadSettings": true });
};
document.head.append(s);
</script>Replace YOUR_NOTIX_APP_ID with your Notix App ID from Push Settings.
Parallel Mode (Tacoloco + Notix)
Add two scripts before </head>:
<script type="application/javascript" src="YOUR_TACOLOCO_JS_URL" async></script>
<script>
var _ntxInterval = setInterval(function() {
if (Notification.permission === 'granted') {
navigator.serviceWorker.register('/sw.enot.js?appId=YOUR_NOTIX_APP_ID', { scope: '/ntx' });
clearInterval(_ntxInterval);
}
}, 300);
</script>Replace YOUR_TACOLOCO_JS_URL and YOUR_NOTIX_APP_ID with your values from Push Settings.
Service worker files are served automatically on your tracking domains β no extra steps needed.
External landers
For external domains (not managed by our platform), you need to do two things:
A. Add the same script tags as Lander Uploads With Redirect (above)
Paste them into your externally-hosted page before </head>.
B. Host service worker files on your domain
You must place the service worker files at the root of your external domain yourself.
Notix-Only mode β create sw.enot.js at your domain root with this content:
importScripts("https://notixio.com/ent/current/enot.sw.min.js?r=sw");Parallel mode β host both files at your domain root:
sw.enot.jsβ with the content shown above- The Tacoloco SW file (e.g.
{appId}.js) β download it from your Tacoloco dashboard under βService Workerβ and place it at your domain root