1.0.1 • Published 2 years ago
@penguinwolf/braze-integration v1.0.1
Basic Usage
- install using
npm i @penguinwolf/braze-integration
- import into your project and construct the integration
import BrazeIntegration from "@penguinwolf/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',
});