1.0.1 • Published 2 years ago

@penguinwolf/braze-integration v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Basic Usage

  1. install using npm i @penguinwolf/braze-integration
  2. 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);
  1. You can access the Braze SDK instance directly from the brazeIntegration object
const braze = brazeIntegration.braze;
braze.logCustomEvent('set_location', {
  location: 'QLD',
});
1.0.1

2 years ago

1.0.0

2 years ago