gopersonal Platform
English
English
  • Introduction
    • Platform Overview
    • How it works
    • Use Cases
      • Ecommerce
        • Personalizations
          • Web Content
          • Recommendations
          • Notifications
          • Pop up
          • Feedback
          • Custom Code
          • APIs (App & other channels)
        • Broadcasts
    • Roadmap
    • Release Notes
      • Q2 2024
      • Q1 2024
      • Q4 2023
  • ADMIN UI
    • Introduction
    • Projects
    • Top bar
    • Menu
    • Dashboard
    • Analytics
      • Personalizations
      • Recommendations
      • Usage
    • Segmentation
      • Contact Lists
      • Audiences
        • Visit Behavior Rules
        • Purchase Behavior Rules
        • Affinity Rules
        • Predictive Rules
        • Customer Properties Rules
        • Cluster RFM Rules
        • Product Interactions Rules
        • Custom Interactions Rules
        • Live Shopping Rules
        • Location Rules
    • Personalizations
      • Listing
      • Web Content personalization
      • Recommendations personalization
      • Feedback personalization
      • Pop up personalization
      • Notifications personalization
      • Custom Code personalization
      • API personalization
      • Experiences
        • Targeting Rules
          • Session Behavior Rules
          • Time Rules
          • Demographic Rules
        • A/B Testing
        • New Variant from scratch
        • New variant using my templates
        • New variant using Go Personal's template
        • Variables
      • Recommendations strategies
    • Broadcasts
      • Listing
      • New Broadcast
        • New Email Variant
        • New SMS Variant
        • New Push Notification Variant
      • A/B tests
      • Text Generator
    • Journeys
      • Listing
      • Workflow
        • Trigger
        • Dynamic variables
        • Notifications
          • Email
          • SMS
          • App Push Notification
        • Flow control
          • Rules
          • Simple condition
          • Complex condition
          • A/B testing paths
        • Delays
          • Delay time
          • Wait for customer property change
          • Wait for interaction
        • Actions
          • Invoke API
          • Script
    • Customers
    • Addons
      • Go Live Shopping
        • App
      • Go Search
    • Items
    • Users
    • Catalogs
      • Interactions
      • Goals
      • Templates
    • Integrations
  • Developers
    • Magento
    • WooCommerce
    • VTEX
    • SDK Integration Guide for E-Commerce Websites
    • Channels setup
      • Web Push Notifications
Powered by GitBook
On this page
  • 1- Create the Web Push integration
  • 2- Add the Service Worker to your site
  • 3- Add your opt-in personalization
  1. Developers
  2. Channels setup

Web Push Notifications

PreviousChannels setup

Last updated 8 months ago

To send web push notifications to your customers, you must first create the integration in the gopersonal admin and complete the configuration by following these steps:

1- Create the Web Push integration

Go to Integrations and select Web push after Clicking New Integration.

To authenticate a service account and authorize its access to Firebase services, you need to generate a private key file in JSON format.

Follow these steps to generate a private key file for the service account:

  • In the Firebase console, go to Settings > Service accounts.

  • Click on Generate new private key, then click Generate key to confirm.

  • Download the JSON file and upload it in the Integration.

2- Add the Service Worker to your site

The Service Worker (SW) is a JavaScript script that runs even when the browser is closed. This enables GoPersonal to send web push notifications to users with an active token, regardless of their online status. GoPersonal uses Firebase to send the push message to the SW, which then displays the notification to the user.

Follow this , right-click, and select "Save As" to download the Service Worker file. Next, upload the Service Worker file to your domain’s subpath. The SW should be accessible at . If you need to use a different name, please let us know.

3- Add your opt-in personalization

To send web push notifications to your users, it's essential to obtain their consent and ensure they subscribe to receive them. We offer customizable templates that make it easy to add opt-in collectors to your site.

link
www.yoursite.com/gp-firebase.js