{"_id":"@amplitude/plugin-page-view-v1-enrichment-browser","_rev":"19-9e6f0a8fec7dcb6b08e14159f1c1b1a5","name":"@amplitude/plugin-page-view-v1-enrichment-browser","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.0":{"name":"@amplitude/plugin-page-view-v1-enrichment-browser","version":"0.1.0","author":{"name":"Amplitude Inc"},"license":"MIT","_id":"@amplitude/plugin-page-view-v1-enrichment-browser@0.1.0","maintainers":[{"name":"alec.amplitude","email":"alec.boutin@amplitude.com"},{"name":"amplicynthia","email":"cynthia.li@amplitude.com"},{"name":"mae.capozzi","email":"mae.capozzi@amplitude.com"},{"name":"sdk.dev","email":"sdk.dev@amplitude.com"},{"name":"dnshi","email":"dean.xiaoshi@gmail.com"},{"name":"kevinpagtakhan","email":"kevpagtakhan@gmail.com"},{"name":"justin-fiedler","email":"jbfiedler@gmail.com"},{"name":"qingzhuo","email":"qingzhuo.zhen@amplitude.com"},{"name":"rctbusk","email":"rctbusk@gmail.com"},{"name":"jackmccloy","email":"dryice82@gmail.com"},{"name":"amp_haoliu","email":"hao.liu@amplitude.com"},{"name":"myztiq","email":"npm@ryan-kahn.com"},{"name":"curtisbliu","email":"curtis@amplitude.com"},{"name":"jtran","email":"jptran318@gmail.com"},{"name":"kelvin-lu","email":"kelvin@amplitude.com"},{"name":"nutwani","email":"nirmal@amplitude.com"},{"name":"hao.yu","email":"hao.yu@amplitude.com"},{"name":"kelson.warner","email":"kelson.warner@amplitude.com"},{"name":"ajhorst_amp","email":"aj.horst@amplitude.com"},{"name":"brian.giori","email":"brian.giori@amplitude.com"}],"homepage":"https://github.com/amplitude/Amplitude-TypeScript","bugs":{"url":"https://github.com/amplitude/Amplitude-TypeScript/issues"},"dist":{"shasum":"33814abf3451a69b04c19226c53ff835c6c83f92","tarball":"https://registry.npmjs.org/@amplitude/plugin-page-view-v1-enrichment-browser/-/plugin-page-view-v1-enrichment-browser-0.1.0.tgz","fileCount":37,"integrity":"sha512-Dj6B3zDNaOq3WkQJO+mgM0j8caTHgIXyWVzIBcPR5kap7t5+ejACwhEYWM1ZCfudi0LH4CE/68uIFjnA403kNg==","signatures":[{"sig":"MEUCIQDdDEySwpF/Qha9YfvZuBbt61PdF8l5BsED1X6k8rSDAwIgKiOwsZpSoTRPn/QMyGNdBYYzNoQncd6zW9gevL2ZKFE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31643},"main":"lib/cjs/index.js","types":"lib/esm/index.d.ts","module":"lib/esm/index.js","gitHead":"f9bb21699dd3d44dbca3318141249c3a57ce1000","scripts":{"fix":"yarn fix:eslint & yarn fix:prettier","lint":"yarn lint:eslint & yarn lint:prettier","test":"jest","build":"yarn bundle && yarn build:es5 && yarn build:esm","clean":"rimraf node_modules lib coverage","bundle":"rollup --config rollup.config.js","build:es5":"tsc -p ./tsconfig.es5.json","build:esm":"tsc -p ./tsconfig.esm.json","typecheck":"tsc -p ./tsconfig.json","fix:eslint":"eslint '{src,test}/**/*.ts' --fix","lint:eslint":"eslint '{src,test}/**/*.ts'","fix:prettier":"prettier --write \"{src,test}/**/*.ts\"","lint:prettier":"prettier --check \"{src,test}/**/*.ts\""},"_npmUser":{"name":"sdk.dev","email":"sdk.dev@amplitude.com"},"repository":{"url":"git+https://github.com/amplitude/Amplitude-TypeScript.git","type":"git"},"_npmVersion":"lerna/6.1.0/node@v16.20.1+x64 (linux)","description":"<p align=\"center\">   <a href=\"https://amplitude.com\" target=\"_blank\" align=\"center\">     <img src=\"https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg\" width=\"280\">   </a>   <b","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"tslib":"^2.4.1","@amplitude/analytics-types":"^2.1.1","@amplitude/analytics-client-common":"^2.0.4"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.79.1","rollup-plugin-gzip":"^3.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-execute":"^1.1.1","@rollup/plugin-commonjs":"^23.0.4","@rollup/plugin-typescript":"^10.0.1","@rollup/plugin-node-resolve":"^15.0.1","@amplitude/analytics-browser":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/plugin-page-view-v1-enrichment-browser_0.1.0_1691537742579_0.9965772237924122","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@amplitude/plugin-page-view-v1-enrichment-browser","version":"1.0.0","author":{"name":"Amplitude Inc"},"license":"MIT","_id":"@amplitude/plugin-page-view-v1-enrichment-browser@1.0.0","maintainers":[{"name":"alec.amplitude","email":"alec.boutin@amplitude.com"},{"name":"amplicynthia","email":"cynthia.li@amplitude.com"},{"name":"mae.capozzi","email":"mae.capozzi@amplitude.com"},{"name":"sdk.dev","email":"sdk.dev@amplitude.com"},{"name":"dnshi","email":"dean.xiaoshi@gmail.com"},{"name":"kevinpagtakhan","email":"kevpagtakhan@gmail.com"},{"name":"justin-fiedler","email":"jbfiedler@gmail.com"},{"name":"qingzhuo","email":"qingzhuo.zhen@amplitude.com"},{"name":"rctbusk","email":"rctbusk@gmail.com"},{"name":"jackmccloy","email":"dryice82@gmail.com"},{"name":"amp_haoliu","email":"hao.liu@amplitude.com"},{"name":"myztiq","email":"npm@ryan-kahn.com"},{"name":"curtisbliu","email":"curtis@amplitude.com"},{"name":"jtran","email":"jptran318@gmail.com"},{"name":"kelvin-lu","email":"kelvin@amplitude.com"},{"name":"nutwani","email":"nirmal@amplitude.com"},{"name":"hao.yu","email":"hao.yu@amplitude.com"},{"name":"kelson.warner","email":"kelson.warner@amplitude.com"},{"name":"ajhorst_amp","email":"aj.horst@amplitude.com"},{"name":"brian.giori","email":"brian.giori@amplitude.com"}],"homepage":"https://github.com/amplitude/Amplitude-TypeScript","bugs":{"url":"https://github.com/amplitude/Amplitude-TypeScript/issues"},"dist":{"shasum":"89695c77dafd980fad8b5e931b0a5d21fbb75aee","tarball":"https://registry.npmjs.org/@amplitude/plugin-page-view-v1-enrichment-browser/-/plugin-page-view-v1-enrichment-browser-1.0.0.tgz","fileCount":37,"integrity":"sha512-Sbv4YI+70BXmyYRMAkAsMnbppurCDzueLnqyAnMm9f/UGiIbSRxHQ6yZHiPUrrppRVtESgabRl6bQW5xIXJEWQ==","signatures":[{"sig":"MEQCIFkxJBKFLzHfbrM6JA0MPTddzJSXRlvj3DA4mnnjJ1I8AiAYSOrJ01PkvPArXcVzJc44FkokOw3ZM9pux5JXYVwYBA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31704},"main":"lib/cjs/index.js","types":"lib/esm/index.d.ts","module":"lib/esm/index.js","gitHead":"2f2b22af6d29531292ef3b331ce816196095bb2b","scripts":{"fix":"yarn fix:eslint & yarn fix:prettier","lint":"yarn lint:eslint & yarn lint:prettier","test":"jest","build":"yarn bundle && yarn build:es5 && yarn build:esm","clean":"rimraf node_modules lib coverage","bundle":"rollup --config rollup.config.js","publish":"node ../../scripts/publish/upload-to-s3.js","build:es5":"tsc -p ./tsconfig.es5.json","build:esm":"tsc -p ./tsconfig.esm.json","typecheck":"tsc -p ./tsconfig.json","fix:eslint":"eslint '{src,test}/**/*.ts' --fix","lint:eslint":"eslint '{src,test}/**/*.ts'","fix:prettier":"prettier --write \"{src,test}/**/*.ts\"","lint:prettier":"prettier --check \"{src,test}/**/*.ts\""},"_npmUser":{"name":"sdk.dev","email":"sdk.dev@amplitude.com"},"repository":{"url":"git+https://github.com/amplitude/Amplitude-TypeScript.git","type":"git"},"_npmVersion":"lerna/6.1.0/node@v16.20.1+x64 (linux)","description":"<p align=\"center\">   <a href=\"https://amplitude.com\" target=\"_blank\" align=\"center\">     <img src=\"https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg\" width=\"280\">   </a>   <b","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"tslib":"^2.4.1","@amplitude/analytics-types":"^2.1.1","@amplitude/analytics-client-common":"^2.0.4"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rollup":"^2.79.1","rollup-plugin-gzip":"^3.1.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-execute":"^1.1.1","@rollup/plugin-commonjs":"^23.0.4","@rollup/plugin-typescript":"^10.0.1","@rollup/plugin-node-resolve":"^15.0.1","@amplitude/analytics-browser":"^2.1.2"},"_npmOperationalInternal":{"tmp":"tmp/plugin-page-view-v1-enrichment-browser_1.0.0_1691615169263_0.06179189849615496","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-08-08T23:35:42.465Z","modified":"2026-06-26T17:03:12.571Z","0.1.0":"2023-08-08T23:35:42.778Z","1.0.0":"2023-08-09T21:06:09.475Z"},"bugs":{"url":"https://github.com/amplitude/Amplitude-TypeScript/issues"},"author":{"name":"Amplitude Inc"},"license":"MIT","homepage":"https://github.com/amplitude/Amplitude-TypeScript","repository":{"url":"git+https://github.com/amplitude/Amplitude-TypeScript.git","type":"git"},"description":"<p align=\"center\">   <a href=\"https://amplitude.com\" target=\"_blank\" align=\"center\">     <img src=\"https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg\" width=\"280\">   </a>   <b","maintainers":[{"email":"curtis@amplitude.com","name":"curtisbliu"},{"email":"kelson.warner@amplitude.com","name":"kelson.warner"},{"email":"sdk.dev@amplitude.com","name":"sdk.dev"},{"email":"eric.kim@amplitude.com","name":"eric_amplitude"},{"email":"daniel.graham@amplitude.com","name":"daniel-graham-amplitude"},{"email":"jesse.wang@amplitude.com","name":"jjwang123"}],"readme":"<p align=\"center\">\n  <a href=\"https://amplitude.com\" target=\"_blank\" align=\"center\">\n    <img src=\"https://static.amplitude.com/lightning/46c85bfd91905de8047f1ee65c7c93d6fa9ee6ea/static/media/amplitude-logo-with-text.4fb9e463.svg\" width=\"280\">\n  </a>\n  <br />\n</p>\n\n# @amplitude/@amplitude/plugin-page-view-v1-enrichment-browser\n\nOfficial Browser SDK plugin for making page view event compatible with browser v1.\n\n## Installation\n\nThis package is published on NPM registry and is available to be installed using npm and yarn.\n\n```sh\n# npm\nnpm install @amplitude/plugin-page-view-v1-enrichment-browser@^1.0.0\n\n# yarn\nyarn add @amplitude/plugin-page-view-v1-enrichment-browser@^1.0.0\n```\n\n## Usage\n\nThis plugin works on top of the Amplitude Browser SDK. It's used for updating the page view event_type and event_properties the same as Browser v1.\nIn Browser v2.x, we have enriched the page view event_type and event_propertis. You can use this plugin to maintain consistency with page view tracking from earlier SDK versions.\n\n### 1. Import Amplitude packages\n\n* `@amplitude/analytics-browser`\n* `@amplitude/plugin-page-view-v1-enrichment-browser`\n\n```typescript\nimport * as amplitude from '@amplitude/analytics-browser';\nimport { pageViewV1EnrichmentPlugin } from '@amplitude/plugin-page-view-v1-enrichment-browser';\n```\n\n### 2. Instantiate page view v1 enrichment plugin\n\n```typescript\nconst pageViewPlugin = pageViewV1EnrichmentPlugin();\n```\n\n### 3. Install plugin to Amplitude SDK\n\n```typescript\namplitude.add(pageViewPlugin);\n```\n\n### 4. Initialize Amplitude SDK\n\n```typescript\namplitude.init('API_KEY');\n```\n\n## Resulting on page view event\n\n| property |[Browser SDK 2.0](../) </div> | With this plugin |\n| --- | --- | --- |\n| `Event Type` | `[Amplitude] Page Viewed` | `Page View` |\n| `Event Properties` | `page_domain` |  `[Amplitude] Page Domain` |\n| | `page_location` | `[Amplitude] Page Location` |\n| | `page_path` | `[Amplitude] Page Path` |\n| | `page_title` | `[Amplitude] Page Title` |\n| | `page_url` | `[Amplitude] Page URL`|\n","readmeFilename":"README.md"}