Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Self Configuration Example
import mParticle from '@mparticle/web-sdk';
import mParticleConfig from './';
import gaKit from '@mparticle/web-google-analytics-kit'
// this is required to instruct the SDK that the configuration
// does not need to be refreshed by the SDK on init.
mParticleConfig.requestConfig = false;
mParticle.init('REPLACE ME', mParticleConfig);
function() {
mParticle.logEvent("Example event!");
console.log('mParticle self-hosted config has loaded!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment