{
  "name": "@snowplow/browser-tracker",
  "version": "3.23.1",
  "description": "Browser tracker for Snowplow",
  "keywords": [
    "tracking",
    "web analytics",
    "events",
    "open source"
  ],
  "homepage": "http://bit.ly/sp-js",
  "bugs": "https://github.com/snowplow/snowplow-javascript-tracker/issues",
  "repository": {
    "type": "git",
    "url": "https://github.com/snowplow/snowplow-javascript-tracker.git"
  },
  "license": "BSD-3-Clause",
  "contributors": [
    "Alex Dean",
    "Simon Andersson",
    "Anthon Pang",
    "Fred Blundun",
    "Joshua Beemster",
    "Michael Hadam",
    "Paul Boocock"
  ],
  "sideEffects": false,
  "main": "./dist/index.umd.js",
  "module": "./dist/index.module.js",
  "types": "./dist/index.module.d.ts",
  "files": [
    "dist"
  ],
  "dependencies": {
    "@snowplow/browser-tracker-core": "3.23.1",
    "@snowplow/tracker-core": "3.23.1",
    "tslib": "^2.3.1"
  },
  "devDependencies": {
    "@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
    "@rollup/plugin-commonjs": "~21.0.2",
    "@rollup/plugin-node-resolve": "~13.1.3",
    "@types/jest": "~27.4.1",
    "@types/jsdom": "~16.2.14",
    "@types/lodash": "~4.14.180",
    "@typescript-eslint/eslint-plugin": "~5.15.0",
    "@typescript-eslint/parser": "~5.15.0",
    "eslint": "~8.11.0",
    "jest": "~27.5.1",
    "jest-environment-jsdom": "~27.5.1",
    "jest-environment-jsdom-global": "~3.0.0",
    "jest-standard-reporter": "~2.0.0",
    "lodash": "~4.17.21",
    "rollup": "~2.70.1",
    "rollup-plugin-cleanup": "~3.2.1",
    "rollup-plugin-license": "~2.6.1",
    "rollup-plugin-terser": "~7.0.2",
    "rollup-plugin-ts": "~2.0.5",
    "ts-jest": "~27.1.3",
    "typescript": "~4.6.2"
  },
  "scripts": {
    "build": "rollup -c --silent --failAfterWarnings",
    "test": "jest"
  },
  "readme": "# Snowplow Browser Tracker\n\n[![npm version][npm-image]][npm-url]\n[![License][license-image]](LICENSE)\n\nAdd Snowplow Tracking to your Web Application with `@snowplow/browser-tracker`.  \n\n## Maintainer quick start\n\nPart of the Snowplow JavaScript Tracker monorepo.  \nBuild with [Node.js](https://nodejs.org/en/) (14 or 16) and [Rush](https://rushjs.io/).\n\n### Setup repository\n\n```bash\nnpm install -g @microsoft/rush \ngit clone https://github.com/snowplow/snowplow-javascript-tracker.git\nrush update\n```\n\n## Package Installation\n\nWith npm:\n\n```bash\nnpm install @snowplow/browser-tracker\n```\n\n## Usage\n\nInitialize your tracker with your desired configuration and optional plugins:\n\n```js\nimport { newTracker } from '@snowplow/browser-tracker';\nimport { SiteTrackingPlugin } from '@snowplow/browser-plugin-site-tracking';\nimport { PerformanceTimingPlugin } from '@snowplow/browser-plugin-performance-timing';\nimport { ClientHintsPlugin } from '@snowplow/browser-plugin-client-hints';\nimport { FormTrackingPlugin, enableFormTracking } from '@snowplow/browser-plugin-form-tracking';\n\nnewTracker('sp1', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin(), ClientHintsPlugin(), FormTrackingPlugin() ] }); // Also stores reference at module level\nnewTracker('sp2', '{{collector}}', { plugins: [ PerformanceTimingPlugin(), SiteTrackingPlugin() ] }); // You can have multiple trackers with different configs!\n\nenableFormTracking() // Switch on form tracking\n\n```\n\nThen use the `trackX` functions from this package and your plugins to track to all trackers which have been initialized, or select just some trackers:\n\n```js\nimport { trackPageView } from '@snowplow/browser-tracker';\nimport { trackSocialInteraction } from '@snowplow/browser-plugin-site-tracking';\n\ntrackPageView({}, ['sp1']); // Just to `sp1`\n\n// OR to all trackers with some extra context!\ntrackPageView({\n  title: 'My Title',\n  context: [\n    {\n      schema: 'iglu:org.schema/WebPage/jsonschema/1-0-0',\n      data: {\n        keywords: ['tester'],\n      },\n    },\n  ],\n});\n\n// Use your plugin track methods too\ntrackSocialInteraction({\n  action: 'retweet',\n  network: 'twitter',\n  target: '1234',\n});\n\n\n```\n\n## Copyright and license\n\nLicensed and distributed under the [BSD 3-Clause License](LICENSE) ([An OSI Approved License][osi]).\n\nCopyright (c) 2022 Snowplow Analytics Ltd, 2010 Anthon Pang.\n\nAll rights reserved.\n\n[npm-url]: https://www.npmjs.com/package/@snowplow/browser-tracker\n[npm-image]: https://img.shields.io/npm/v/@snowplow/browser-tracker\n[docs]: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/javascript-tracker/\n[osi]: https://opensource.org/licenses/BSD-3-Clause\n[license-image]: https://img.shields.io/npm/l/@snowplow/browser-tracker\n"
}