How to Set up Web Push Notifications with a Website Builder
You can add web push notifications to website builders — without knowing anything about coding — to inform website visitors about news, sales, order statuses, and other important events.
Most site builders provide the option to add extra code to the <head> element of the site. Let's look at how to add a script for configuring web push notifications to a site created with Wix.
Where to Find the Script from SendPulse to Connect a Push Service
When Adding a New Site
To add a new site, go to the "Push" section, click "Add site," select the site protocol (http or https), and insert the domain of your site.
Pages of sites with domains created with a dot "." are considered separate sites and must be added separately. Site pages with domains created with a slash "/" are considered pages of a single. After installing the script and collecting subscribers, you can divide the audience using segmentation.
Then select the type of request and display conditions and click “Next step.”
Copy the script from the box and go to the next step.
To install the push service on most sites created with a constructor, additional files are not needed.
In an Already Added Site
Select a site and click "Site Settings."
Go to the "Site Integration" tab and copy the script.
How To Install the Script On Your Website
The push script must be added to the <head> of your site. Let's look at how to add an example of inserting a script on the Wix website builder.
Please note that adding a script to your website is only available on premium pricing plans after you have added a domain.
Select your site, go to the “Settings” tab, scroll down to the advanced settings and click "Custom code."
In the head section, click “Add code.”
Paste the script from SendPulse here.
Choose display conditions: on which pages and how often you want push notification to be displayed.
Switch the tumbler to enable.
Next, on your site, you will see a request to receive push notifications.
How to Check the Connection of the Script to the Site
On Your Site
You can verify the script by going to the source code of your site. To do this, go to the site and press "CTRL + U" or right-click and select "View page source."
There the script you added should appear in the
<head> element. If it is not there, then the page has not been re-published yet, or you added the script to the wrong page.
If you installed the script on a separate page, then to verify the code, you need to specify this page in SendPulse.
Select a site, go to “site settings,” the “General settings tab,” and click "Specify a page to check." In the next window, specify this page and click "Check."
Note that it may take some time for the server to recognize the script after installation.
Go to the "Website integration" tab, click "Check Settings." If the script was added correctly, the corresponding icon will appear.
Also, an icon showing a successful connection can be found on the main page.
Last Updated: 13.09.2022