
Choose All Browsers (except Safari) under Web Push Platforms.On the dashboard of the application, click Settings.Sign in to the OneSignal account and click on the app/site that you integrate with Blueshift.Use the webhook URL provided by Blueshift to track a customer impression or click. In order to use this, you must setup webhook callback urls to your server/app, and once you receive the callback, use the relevant URL in the "data" section to call Blueshift for the engagement tracking.


For more information, see Web Push Webhooks on OneSignal documentation. You can collect these webhook callbacks and send these back to Blueshift as events for segmentation. OneSignal can issue webhook callbacks to a server on message engagement such as impressions or clicks. Collect engagement data back from OneSignalĪfter the integration of OneSignal with Blueshift, you can send a notification from the Blueshift platform to the customers of your site through OneSignal. Ĭonsole.log( "OneSignal User ID:", userId) This would fire an identify event with onesignal_webpush_id set to the OneSignal user identifier that would be needed for sending out the Web Push message via OneSignal. Save the user’s OneSignal user ID (also called player id) on a Blueshift user profile with an identify event.
#One signal web push internet explorer code
Copy the application ID from the URL bar of the dashboard page.Īdd the OneSignal Javascript code to your website The application/site's dashboard opens.To get the app ID, sign in to your OneSignal account, click on the app or site that you have added to your OneSignal account.You must also specify the APP ID in the message template that you use to send the messages to OneSIgnal. Copy the API key from the REST API Keys section of the Account Management page that appears.After you enter your application/site's page, click on your profile picture in the upper right corner > Account & API keys.To find the Rest API key, sign in to your OneSignal account and click on your site or app under All Applications on the home page.To integrate with Blueshift, you need the API Key and the APP ID. Follow the steps outlined in this OneSignal document to setup a Web Push app in OneSignal.

