====== How do I generate web-push opt-ins? ======= Web-push notifications are messages that are delivered to the web browser. The user can be on any website. If the web browser is closed at the time of delivery, the notification will be displayed the next time it is opened. Below you will find instructions on how to generate opt-ins for web push notifications. ===== Opt-in generating for Web-Push – first steps ===== ==== Upload SDK files ==== You will receive your personal SDK file from promio.net. The following three files are included: - manifest.json - OneSignalSDKWorker.js - OneSignalSDKUpdaterWorker.js Include them on your main page (top-level domain). The URLs of the uploaded files should then look like this: - https://yoursite.com/manifest.json - https://yoursite.com/OneSignalSDKWorker.js - https://yoursite.com/OneSignalSDKUpdaterWorker.js ==== Insert the code ==== To collect web push opt-ins on your website, you need to insert a code into the of your page. The code will be given to you by promio.net. Your code will be personalized. The example below serves as an illustration. {{tag>KPIs web_push DOI }}