LogoLogo
Sign inSign up
  • PushPushGo Documentation
  • Web push
    • Overview
    • Instructions
      • Subscription tests
    • Service worker
    • Integration script
      • Subscription form
        • Subscription form creator
          • Topics
        • Subscription form delay
        • Display form rules
        • Confirmation window
      • Bell widget
        • Inbox
        • Topics
      • Google Analytics & Google Tag Manager
      • Default notification
      • Beacons
    • SDK
      • Examples
    • JS Code
    • Safari support
    • FAQ
  • Mobile push
    • Overview
    • Google Android
    • Apple iOS
    • Huawei Android
  • ONSITE NOTIFICATIONS
    • Overview
  • Onsite notifications
    • Create onsite notification
    • Edit onsite notification
    • Onsite notification report
    • Inbox
  • Onsite notifications list
  • Subscribers
    • Subscribers
      • Activity status
      • Subscriber Details
    • Labels
      • System Labels
      • Add Labels Manually
    • Segments
      • Create Segment
      • Copy Segment
      • Update Segment
      • Delete Segment
    • Geolocation
  • Campaigns
    • Campaigns
    • Push campaign
      • Create Campaign
        • Content
        • Audience
          • By Segment
          • By Labels
        • Provider options
        • Time
        • Drafts
      • Campaign List
        • Cancel Campaign
        • Copy Campaign
        • Copying and pasting campaigns between projects
        • Delete Campaign
      • Campaign Report
    • AB test
      • Create AB test
        • Variants
        • Audience
        • Provider options
        • Time
        • Save draft or accept a test
      • AB test list
      • Winner selection
      • AB test report
      • Cancel AB Test
      • Send AB test saved as draft
      • Resend AB test
      • Delete AB test
    • RSS campaign
      • Create RSS campaign
      • Audience
      • Enable RSS campaign
      • RSS campaign report
    • Chrome plugin for Rocket push
    • Multi Push
    • Daily push capping
    • Planner
    • FAQ
  • Automation
    • Overview
    • Automation
      • Create automation
        • Name
        • Flow
        • Renew flow
        • Start date
        • End date
        • Building the flow
        • Step
          • Trigger
          • Campaign
            • Create campaign
            • Edit campaign
            • Campaign templates
      • Edit automation
        • Update automation
      • Report
        • Automation report
        • Campaign report
    • Automation list
      • Prority
      • Action
      • Status
      • Reset flow time
  • Analytics
    • Project analytics
      • Subscribers
      • Campaigns
      • Automation
    • Organization analytics
      • Organization dashboard
        • Subscribers
        • Campaigns
        • Automation
      • Project comparison
    • Exports
  • Integrations
    • Webhooks
    • REST API Reference
  • Release notes
Powered by GitBook
On this page

Was this helpful?

  1. Web push

Instructions

Last updated 3 months ago

Was this helpful?

A detailed explanation of the integration can be found at:

Basic integration

In the case of Basic integration, you only have to paste the integration code anywhere into your website's code. In the result:

  • Your recipients will sign up in two stages. After accepting the subscription form, a second pop-up window will appear, in which users must confirm their consent to receive notifications.

  • Recipients are saved on a subdomain dedicated to each project www.yourdomain-pl.pushpushgo.com.

  • Notifications will display a dedicated subdomain www.yourdomain-pl.pushpushgo.com.

1. To use this integration, paste the integration script anywhere in the source of your site.

2. Click the Check Integration button to verify that everything works correctly.

The following messages will inform you about the correct integration:

Integration with own domain

In the case of Integration with own domain, additional conditions must be met during the integration process:

  • Your domain must have https.

  • The integration script must be placed in the <head> section of your website's code.

  • You must add an sw.js file downloaded from our website to your server root path (so that it is available from https://yourdomain.com/sw.js).

  • Due to the above, it is not possible to carry out this integration using Google Tag Manager.

What do you gain from this integration?

  • Your recipients subscribe to one-click notifications, enabling your database to grow faster.

  • Only your domain is visible in notifications on your website.

1. To integrate your website using Integration with own domain, first download and unpack the script and then place it on the server root path.

To check its location:

  • Paste http: //yourdomain/sw.js in your browser and check if it returns the file value or displays an error

2. Next, place the integration code in the <head> section in your page code and click Check Integration to verify its accuracy.

3. A green message will inform you about the correct integration and a form for subscribing to web push notifications will appear on the website.

Important! In the case of integration with own domain, if you already have your service worker on the site and you can not delete it - import the contents of the sw.js file into your file and be sure to inform us about it.

Service worker path change

If you want to replace the address from sw.js with another one, e.g. service-worker.js, you can paste the new address in the Service Worker Path section of the Project settings tab. However, if you want to change the directory where the sw.js file is located (for example to static/sw.js), you must also add the following response header: "Service-Worker-Allowed": "/".

If you intend to add the service worker to another directory, e.g. static, then the fields "sw.js path" and "sw.js scope" (in the Project settings tab on your account) should be completed in this way:

● sw.js path: /static/sw.js

● sw.js scope: /static

https://www.youtube.com/watch?v=xyPapl--NnE&t=109s&ab_channel=PushPushGo