https://github.com/mparticle/web-sdk-showcase
https://github.com/mparticle/web-sdk-showcase
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mparticle/web-sdk-showcase
- Owner: mParticle
- Created: 2019-07-02T16:04:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T04:59:14.000Z (about 3 years ago)
- Last Synced: 2025-08-17T17:19:56.009Z (10 months ago)
- Language: HTML
- Size: 1.12 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mParticle Web SDK Showcase
This repo houses [mParticle Web SDK](https://github.com/mparticle/mparticle-web-sdk) instrumentation examples for your reference.
Please also see the [primary documentation for the Web SDK](https://docs.mparticle.com/developers/sdk/web/).
## Example 1: SDK Bundling
This example shows some of the various ways you can add the SDK to your web app:
- Script tag: Load the SDK via a typical script tag
- Self-hosted SDK: Load the SDK and an example integration via webpack
- Self-hosted SDK + self-hosted SDK configuration: Load the SDK, integrations, and the SDK configuration all in one bundle
### Running the example
```sh
git clone git@github.com:mParticle/web-sdk-showcase.git
cd bundling/
npm install
npm run mpconfigure
npm run build
npm start
```