If you have recently joined Pushloop’s push notification service, but already have a database of subscribers from another service, this guide will walk you through all the steps necessary to migrate your active subscribers to Pushloop’s new system.
Removing Previous Push Services Tags
The first step is to remove the tags of the previous push services from your site or landing page. This is important because, after this operation, you will no longer be able to add new subscribers to the old push service.
1. Locate old service tags: These tags are usually found in the <head>
or <footer>
section of your Web site.
2. Remove tags: Delete the tags related to the old service push, but do not delete the service worker* file.
See the previous service integration guide for more details on where to find these tags.
Add Pushloop Code
Now you need to add the Pushloop code in the <head>
tag of your site.
1. Get the code: Go to the “Manage Sites” section in your Pushloop account.
2. Click on the “Install” button next to the name of your site, under the “Action” column.
3. On this page, scroll down to the “Manual Integration” item and select it
4. Add code: Enter the code found in section “2.” within <head>
of your site.
Installing the Pushloop Service Worker
Each push notification sending service uses a service worker. *Thisis a small file with the extension .js
that acts as an intermediary between your Web site and the user’s browser, managing the cache and push notifications.
IMPORTANT. To migrate active users to Pushloop, the old service file should not be deleted because it is essential that it continues to act as an intermediary during the next step of the migration: “send a push”
1. Download the service worker from Pushloop: follow the path taken above, “Manage sites” > “Install” > “Manual Integration” and download the content indicated by the “Download” button in section “3.”
2. Place the file inside the root of your site or landing page.
Send a message
After removing the tags of the previous push service and adding the Pushloop service worker, it continues to send push from the old service.
1. Use your old service to send push to all active subscribers: keep sending push from your old service as long as possible. Create appealing push as always to keep active users interacting.
2. Wait for migration: When users click on these pushes, they are migrated to Pushloop. This process can take up to 24 hours because not all users are online at the time the message is sent.
Migrated users will appear as new subscribers in the Pushloop dashboard.