@braze/web-sdk-no-amd

Braze SDK without AMD for web sites and other JS platforms.

Usage no npm install needed!

<script type="module">
  import brazeWebSdkNoAmd from 'https://cdn.skypack.dev/@braze/web-sdk-no-amd';
</script>

README

Install

$ npm install --save @braze/web-sdk-no-amd

This will install the Braze Web SDK files into ./node_modules/@braze/web-sdk-no-amd where you can reference them locally. Note that the Braze Web SDK is meant to be used client-side in a web application and may not work as expected in a Node.js server environment.

Usage

var appboy = require('@braze/web-sdk-no-amd');
appboy.initialize('YOUR-API-KEY', { baseUrl: 'YOUR-SDK-ENDPOINT' });
appboy.display.automaticallyShowNewInAppMessages();
appboy.openSession();

See the Public Github Repo for getting started instructions or our documentation pages for use-case based documentation.