DMS-Managed Installation

Follow these steps to install our DMS-Managed push notifications solution on your website.

Getting started with our fully managed push notifications is easy. In three simple steps, your website will be prepped and ready to start collecting subscribers and generating revenue from our push notifications!

Step 1: Upload the service worker file

You need to first upload the service worker file, push-worker.js, to your website’s root directory. For example, if your website is https://yoursite.com, it should be accessible at https://yoursite.com/push-worker.js.

We will provide you with a Service Worker download link via your account rep!

Step 2: Add the installation script

Next, add this installation script into your website’s <header> tag:

<script> (function () { fetch('https://pushpros.tech/GetPushScript?key=2Xa3N8H4tIMDq5DaLOjgimHq4HG8UhWO&domain=' + window.location.hostname, { method: 'GET', redirect: 'follow', mode: 'cors' }).then(function (r) { r.json().then(function (response) { if (!response.success || !response.script) return; var s = document.createElement("script"); s.type = "text/javascript"; s.innerHTML = response.script; document.getElementsByTagName('head')[0].appendChild(s); }); }) })() </script>

Please don't edit this at all - simply copy and paste.

Step 3: Test your website

Navigate to your website to confirm that the installation was successful. If the push notification opt-in prompt appears, everything is correct. If you do not see the prompt, please reach out to your DMS-Managed support rep and they will help you get everything installed correctly.