@penguin-wolf/braze-integration
v2.0.1
Published
1. install using `npm i @penguinwolf/braze-integration` 2. import into your project and construct the integration ```js import BrazeIntegration from "@penguin-wolf/braze-integration";
Downloads
9
Readme
Basic Usage
- install using
npm i @penguinwolf/braze-integration
- import into your project and construct the integration
import BrazeIntegration from "@penguin-wolf/braze-integration";
const sdkKey = '...';
const sdkUrl = '...';
const enableLogging = scriptData.WP_ENV === 'development'; // note: only enable logging on development environments
const brazeIntegration = new BrazeIntegration(sdkKey, sdkUrl, enableLogging);
- You can access the Braze SDK instance directly from the brazeIntegration object
const braze = brazeIntegration.braze;
braze.logCustomEvent('set_location', {
location: 'QLD',
});