A web integration (or a kit) is an extension to the core mParticle Web SDK. A kit works as a bridge between the mParticle SDK and a partner SDK. It abstracts the implementation complexity, simplifying the implementation for developers.
A kit takes care of initializing and forwarding information depending on what you've configured in mParticle's dashboard.
Detailed instructions on how to implement your own integration with the mParticle Web SDK can be found here, but you can view a quick start guide below.
- Fork this repo and
cd
into it locally on your computer. - Run
npm install
to install dependencies. - Run
KIT=YOURKITNAME npm run watch
to watch files in thesrc/
folder, and automatically build your kit todist/YOURKITNAME-Kit.iife.js
. Your kit will continuously build as your save your edits. - Following examples such as Optimizely, edit files in
src/
. - As you map mParticle's methods to your own in
src/
, stub your SDK methods and create tests intest/tests.js
. - Submit a pull request to this repo. A developer from mParticle will review it and once complete, we will help provide you with a repo for your integration.
Questions? Give us a shout at support@mparticle.com
This mParticle Web Kit is available under the Apache License, Version 2.0. See the LICENSE file for more info.