@amplitude/plugin-page-view-tracking-browser 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -15,10 +15,10 @@ This package is published on NPM registry and is available to be installed using
15
15
 
16
16
  ```sh
17
17
  # npm
18
- npm install @amplitude/plugin-page-view-tracking-browser
18
+ npm install @amplitude/plugin-page-view-tracking-browser@^1.0.0
19
19
 
20
20
  # yarn
21
- yarn add @amplitude/plugin-page-view-tracking-browser
21
+ yarn add @amplitude/plugin-page-view-tracking-browser@^1.0.0
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -50,7 +50,7 @@ const pageViewTracking = pageViewTrackingPlugin(amplitude, {
50
50
 
51
51
  |Name|Type|Default|Description|
52
52
  |-|-|-|-|
53
- |`trackOn`|`"attribution"` or `() => boolean`|`undefined`|Use this option to control when to track a page view event. By default, a page view event is sent on each SDK initialization.<br/><br/>Use `() => boolean` to control sending page view events using custom conditional logic.<br/><br/>Use `"attribution"` to send page view events with attribution events. This option requires using [@amplitude/plugin-web-attribution-browser](https://github.com/amplitude/Amplitude-TypeScript/tree/main/packages/plugin-web-attribution-browser).|
53
+ |`trackOn`|`"attribution"` or `() => boolean`|`undefined`|Use this option to control when to track a page view event. By default, a page view event is sent on each SDK initialization.<br/><br/>Use `() => boolean` to control sending page view events using custom conditional logic.<br/><br/>Use `"attribution"` to send page view events with attribution events. This option requires using [@amplitude/plugin-web-attribution-browser](https://github.com/amplitude/Amplitude-TypeScript/tree/v1.x/packages/plugin-web-attribution-browser).|
54
54
  |`trackHistoryChanges`|`"all"` or `"pathOnly"`|`undefined`|Use this option to subscribe to page view changes in a single page application like React.js. By default, page view changes in single page applications does not trigger a page view event.<br/><br/>Use `"all"` to compare the full url changes.<br/><br/>Use `"pathOnly"` to compare only url path changes.|
55
55
 
56
56
  ### 3. Install plugin to Amplitude SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplitude/plugin-page-view-tracking-browser",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "author": "Amplitude Inc",
6
6
  "homepage": "https://github.com/amplitude/Amplitude-TypeScript",
@@ -36,12 +36,12 @@
36
36
  "url": "https://github.com/amplitude/Amplitude-TypeScript/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@amplitude/analytics-client-common": "^1.0.0",
40
- "@amplitude/analytics-types": "^1.0.0",
39
+ "@amplitude/analytics-client-common": "^1.0.1",
40
+ "@amplitude/analytics-types": "^1.1.0",
41
41
  "tslib": "^2.4.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@amplitude/analytics-browser": "^1.10.7",
44
+ "@amplitude/analytics-browser": "^1.10.8",
45
45
  "@rollup/plugin-commonjs": "^23.0.4",
46
46
  "@rollup/plugin-node-resolve": "^15.0.1",
47
47
  "@rollup/plugin-typescript": "^10.0.1",
@@ -53,5 +53,5 @@
53
53
  "files": [
54
54
  "lib"
55
55
  ],
56
- "gitHead": "8f527e4a6437f66640efb95877750dc50ea93f3e"
56
+ "gitHead": "0c03a57239e1048b1730fa58464b125ba9b8b6ba"
57
57
  }