@mparticle/web-sdk 3.27.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/mparticle.common.js +1 -1
- package/dist/mparticle.esm.js +1 -1
- package/dist/mparticle.js +341 -108
- package/dist/types/src/buttonTracking/buttonDescription.d.ts +2 -1
- package/dist/types/src/buttonTracking/buttonTracker.d.ts +0 -6
- package/dist/types/src/buttonTracking/checkoutIntent.d.ts +2 -0
- package/dist/types/src/pathMasking.d.ts +2 -0
- package/package.json +1 -1
- package/src/batchUploader.ts +25 -9
- package/src/buttonTracking/buttonDescription.ts +266 -46
- package/src/buttonTracking/buttonTracker.ts +22 -62
- package/src/buttonTracking/checkoutIntent.ts +56 -2
- package/src/pageViewTracker.ts +3 -1
- package/src/pathMasking.ts +116 -9
package/README.md
CHANGED
|
@@ -16,11 +16,11 @@ Version 3 of the mParticle Web SDK is generally available. See [MIGRATING.md](MI
|
|
|
16
16
|
|
|
17
17
|
## Include and Initialize the SDK
|
|
18
18
|
|
|
19
|
-
There are two ways to initialize the SDK, either via a script tag, or you can bundle the SDK via NPM. A summary of steps for both
|
|
19
|
+
There are two ways to initialize the SDK, either via a script tag, or you can bundle the SDK via NPM. A summary of steps for both is available below, but you should review the detailed documentation for the [script tag](https://docs.mparticle.com/developers/sdk/web/getting-started) and [self hosting](https://docs.mparticle.com/developers/sdk/web/self-hosting) on the mParticle docs site.
|
|
20
20
|
|
|
21
21
|
### Option 1. Load mParticle via Script Tag
|
|
22
22
|
|
|
23
|
-
To integrate the SDK add the following snippet to your site after customizing `mParticle.config`, ideally in the `<head>` element. Replace `
|
|
23
|
+
To integrate the SDK add the following snippet to your site after customizing `mParticle.config`, ideally in the `<head>` element. Replace `REPLACE WITH API KEY` at the end of the snippet with the API key for your mParticle Web workspace.
|
|
24
24
|
|
|
25
25
|
This snippet pre-populates method stubs for much of the public SDK API, allowing immediate reference to these APIs as the SDK loads.
|
|
26
26
|
|