To illustrate the mParticle Data Plan Builder in action within a live website, we’ve implemented the retail data plan template in a sample eCommerce web application. As you explore the live site, each time you perform an action resulting in an event being sent to mParticle, you will see the event and attribute names displayed in a pop-up box.
After cloning this repository locally:
cdinto the app directory- Run
npm installto install dependencies - Run
gatsby developto start the app onlocalhost:8000
The mParticle Data Plan Builder
Note: This step is only possible for users with access to an mParticle tenant
- In the mParticle Gatsby plugin configuration (located in
gatsby-config.js), replace theapiKeyvalue with the web API for your mParticle workspace. You can find this key under web platform configuration details (click Setup->Inputs->Web). - Click through the local build of the application to see eCommerce events coming into the mParticle Live Stream (under Data Master).
This sample app was bootstrapped using JAMstack ECommerce Professional, a fully configurable JAMstack E Commerce site.