Table of Contents
This guide walks you through how to install and activate push notifications for your website using ChatFlow. Push notifications help you re-engage your visitors, share updates instantly, and increase repeat traffic without needing email or social media.
Step 1: Enable Push Notifications in Workspace #
- Open your ChatFlow dashboard.
- On the side bar go to Install & Configure.
- Go to the Setup section and click on the Configure tab.
- In the Push Notifications section, enable the toggle labeled Enable Notifications.
- Click Save Changes to apply the setting.
Step 2: Download the SDK File #
- Click on the Install tab.
- Under Push Notification SDK, click the Download SDK File button to download
chatflow_wpn.js
.
This file is required for your site to handle notifications.
Step 3: Upload the SDK File to Your Website #
- Upload the downloaded
chatflow_wpn.js
file to the root directory of your website. - Make sure the file is accessible at this path:
yourdomain.com/chatflow_wpn.js
Step 4: Add the Installation Script #
- Still in the Install tab, scroll down to the Configure your script section.
- Choose the setup that fits your user base:
- For visitors without logins: Works for anonymous users.
- For users with logins: Tracks users across devices.
- Copy the provided script tag.
Example:
<script defer src="https://sdk.chatflowapp.com/scripts/v1/pixel/0sLMqAUJ0ky7HW4o"></script>
- Paste this script just before the closing
</head>
tag in your website’s HTML.
Step 5: Verify and Test #
- Open your website in a browser.
- Grant permission to receive notifications when prompted.
- Send a test notification from your ChatFlow dashboard.
You’ve now successfully set up push notifications. Your website can start re-engaging users and keeping them updated directly in their browser.