How to push notification "Firebase Cloud Messaging" for Shopify
At step Install custom app, please contact us before taking the step.
I. Create a Firebase project
1. Create a project
- Log in Firebase and create a new project
- Enter the name of project and click "Continue"
- Accept the privacy and create project
2. Build "Cloud Messaging"
- Click dropdown "Build" and select "Cloud Messaging"
- Add firebase to your web app
- Click "Register app"
- Copy "firebaseConfig" and Click "Continue to console"
- Firebase config:
- Click settings icon and select "Project settings"
- Click "Cloud Messaging"
- Enable Cloud Messaging API
- After that, we have the data of Server Key
3. Add script to source code of website
- Copy and paste these scripts into the bottom of your <body> tag
- *firebaseConfig* is the data of firebase config in section 2
- Install custom app (Contact us before taking this step)
At this step, we need you to provide the link of your domain website in Shopify
Copy and send it to us then we will give you a link to install a custom app
We need to install an app, so please contact us before you install the app.
Click the link then press Install app
- We have done with the set up on your website. Next, we will continue with set up in CDP
II. Create destination "Firebase Cloud Messaging"
1. Access the "MARKETING HUB" app and go to the "Destinations" menu
2. Click "+" button and select "Web Push-Notification"
3. Select "Destination catalog": "Firebase Cloud Messaging"
Server Token: we can copy server token as instruction in previous section
- Get "To Client Tokens"
Visit the website, press F12 and go to Console to get "To Client Tokens"
Copy "To Client Tokens" and paste to destination setting
Click "Save" to save destination
Note: After client finish creating "Firebase Cloud Messaging", Antsomi team will collect the data and update "To Client Tokens" attribute in CDP system.
III. Push "Firebase Cloud Messaging" notification via Journey
1. Access "MARKETING HUB" app and go to "Customer Journey" menu
We have 2 channels that supporting to send "Firebase Cloud Messaging". These are "Web Push-Notification" and "Journey Orchestration"
2. Click "+" button to Create Journey, add "Destination" node and select "Firebase Cloud Messaging" destination
Fill in the required information
Click "Save change" to Save the journey
3. Click Activate to activate the journey
Last updated