For custom integration see API section.
Download service worker and save it to the root of the public directory of your website. The service worker file must be accessible via your public website URL under the domain name you wish to send web notifications from.
For example, if your website is
https://www.mywebsite.co.uk than service worker must be accessible via:
What is the Service Worker? Read Service Workers: an Introduction article
Subscription ID can be found in Dashboard under your subscription
From the Pushmix Dashboard copy and paste subscription code in the footer of your web page. You can add subscription code to more than one page.
When a web page is loaded subscription code trigger the opt-in prompt. By displaying the opt-in prompt you asking user permission to send them push notifications.
In the event when the web browser is not supported, the opt-in prompt will not be displayed.
The Opt-in prompt can be used to subscribe for push notifications as well as toggle subscription states or unsubscribe from further notifications.
Include Subscription Code using Google Tag Manager Custom HTML tag.
By default, subscription code is set to load opt-in prompt after the web page is loaded. This behaviour can be easily modified and tailored to your own needs, for example, you can display an opt-in prompt on click event.
Example of displaying the opt-in prompt using Click event: