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

FAQ

Frequently Asked Questions about Website Integration.

Last updated 3 months ago

Was this helpful?

I already have another service worker. Can I integrate with PushPushGo?

Yes, but since there is only one service worker allowed per domain, you need to either:

  • join both service workers together using importScript:

importScripts('
https://cdn.pushpushgo.com/63c574dd030eb6beb6d2c097/worker.js
')
  • or put them separately and point where the service worker from PushPushGo app is located (on your site) by providing its path and typing ‘/ppg_scope’ in service worker scope in Settings > Integration > Web Push (Vapid) section:

Is it possible to integrate Progressive Web Application (PWA) with PushPushGo?

Yes, but since PWA will always have its own service worker and there is only one service worker allowed, you need to use one of the solutions from question above "I already have another service worker. Can I integrate with PushPushGo?".

Is it possible to integrate my website via Google Tag Manager (GTM)?

Yes, you can integrate your website via GTM, but only basic integration will be possible, since you do not have access to the server root path.

Go to your Google Tag Manager and then:

  1. Create a new tag. Select the “Custom html” type and paste the code from the Integration > Installation tab.

  2. Open "Advanced settings" and enter "1" in "Tag firing priority".

  3. Set the trigger to “DOM Ready”.

  4. Remember to publish the changes.

I have changed the service worker name but integration is not working. Why?

If you want to change the service worker name, for example from ‘sw.js’ to ‘service-worker.js’:

  • save the service worker path in Settings > Integration > Web Push (Vapid) as ‘/service-worker.js’.

I have changed the directory where sw.js file is located but integration is not working. Why?

If you want to change the directory where the sw.js file is located (for example, to ‘static/sw.js’):

  • save the service worker path in Settings > Integration > Web Push (Vapid) as ‘/static/sw.js’ and service worker scope as ‘/static/’.

Remember - after a setting scope different than ‘/’ (global), eg. ‘/static’, our application will work only on subpages in that scope or below, so:

  • https://example.com/static - code will work here

  • https://example.com/static/page1 - code will work here

  • https://example.com/ - code won't work here

  • https://example.com/cart - code won't work here

If you still want our code to work globally in that case, you have to set the scope as default - ‘/’ and add the following response header: "Service-Worker-Allowed": "/" to subpage containing service worker.

I want to integrate one project for each subdirectory of my website. How should I do it?

You need to integrate each project by placing the integration script in the corresponding website subdirectory source code and service worker in the subdirectory folder of the server.

Then, change the service worker path & scope of every project in Settings > Integration > Web Push (Vapid) accordingly. For example, for ‘your-site.com/en’ change the service worker path to ‘/en/sw.js’ and the service worker scope to ‘/en/’, and for ‘your-site.com/de’, change the service worker path to ‘/de/sw.js’ and the service worker scope to ‘/de/’.

Sometimes when there is no possibility to add more than one worker, you can try importing subdomains’ service workers into the main service worker and write logic to use them conditionally.

How to unsubscribe from notifications?

Changing browser settings

Every sign-up for notifications appears in the browser settings. Instructions for disabling notifications vary among different browsers.

Google Chrome

Go to Browser settings > Privacy and security > Site settings > Notifications. You can also paste chrome://settings/content/notifications in your address bar. On the list, you can find all the pages on which you have agreed to receive notifications. If you want to unsubscribe from any of them, just choose Remove from the menu.

Firefox

After entering Options> Privacy and Security, search for Permissions>Notifications.

On the list, search for the page from which you want to unsubscribe, and choose the Remove Webiste option.

I can't sign up for notifications

If you have properly integrated PushPushGo with your site but still don’t see the sign-up form, or if your data isn't visible in the panel as the new recipient even after allowing notifications, check whether any of these apply:

  • You are using an incognito window

  • You are already signed up for notifications

  • You have blocked notifications in the browser settings

  • You have blocked notifications in the operating system settings

Sometimes, testing the sign-up form requires performing steps that are not typical for an avarage user. It’s a good idea to clear any settings that might affect the notifications before testing the sigh-up process.