Push

From Service Manual Kadam.net
Jump to: navigation, search

Push - the second most popular advertising block format. It allows you to add site users to the push subscription database and automatically send them advertisements.
Web push is similar to a personal message or important notification from a site that appears on the screen over other open windows on desktop devices or in a smartphone curtain.
The format is quite effective and is in demand among advertisers.
This advertising format allows you to monetize traffic even if the user is not on your site.

Creating a Block

Go to the block management section of your site (SitesSite name) and click on the Add block button in the upper right corner of the page.
Fill in the name and select the format of the Push Ads block.

Push1.png


At the second step, you will be asked to download the service-worker.js file and place it at the root of the site in such a way that it opens as follows: https://yourdomain/service-worker.js

By placing the file, you can check the correct placement of the file by clicking the Check button.
After successful verification, javascript code will appear in the right pane, which must be placed on all pages of your site.
Users will then receive a message inviting them to subscribe to notifications.

See also