Web SDK

With Braze’s Web SDK, you can collect session data, identify users (with the same set of attributes that we support across our other platforms), and record purchases and custom events via a web/mobile browser. Implementing Braze’s Web SDK enables you to create a more complete view of your users across web and mobile channels. You can also use the Web SDK to engage with your users by sending in-app web messages and web push notifications.

Implementation

For information on integrating the Braze Web SDK, see our documentation. After implementing the Web SDK, your website will appear as an app in your app group and will be grouped with your mobile apps.

Web_App_Group

In-App Web Messaging

You can send web messages to engage with users directly in their web/mobile browser. Web messages are sent as in-app messages, and can also be sent as slideup, modal, or fullscreen types. For more information on composing an in-app message, see our page on creating an in-app message.

Web Push

Web push is another great way to engage with users of your web application. Customers visiting your website via Chrome, Safari, Firefox, and Opera can opt-in to receive web push from your web application whether or not the web page is loaded. This feature is also supported on Android Chrome and Firefox Mobile on Android allowing for mobile web notifications. Web push works the same way app push notifications operate on your phone. For more information on composing a web push, see our page on creating a push notification. See below for a sample web push sent by Braze.

appboy-web-push

Users of your web application need to opt-in to receive web push. See below.

web-push-optin

For more information on the push protocol standards and browser support, you can review resources from Apple Mozilla and Microsoft

Delivery Rules

By default, a campaign containing an in-app message will send an in-app web message as well as an in-app mobile message. To send an in-app message exclusively to web or mobile, you will need to segment your campaign accordingly.

Segmenting for Web Users

You can create a segment of your web users by selecting only your website’s app icon in the Apps Used section.

web-users-segment

This will allow you to target users based on their behavior on the web only. If you wanted to target web users to encourage them to download your mobile app, you’d create this segment as your target audience. If you wanted to send a messaging campaign that included a mobile in-app message but not a web message, you would simply uncheck your website’s icon in your segment.

WAS THIS PAGE HELPFUL?
New Stuff!