{"_id":"@bugsplat/hotjar","_rev":"2-82a116deb80c8c5fafbd6a67ec14fa98","name":"@bugsplat/hotjar","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.4":{"name":"@bugsplat/hotjar","version":"1.0.4","description":"Bring Hotjar directly to your application","main":"dist/index.js","module":"dist/index.esm.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c && tsc -d --emitDeclarationOnly","test":"jest","build-demo":"npm run build && webpack --config ./demo/webpack.config.demo.js","run-demo":"npm run build && webpack serve --config ./demo/webpack.config.demo.js","deploy-demo":"npm run build-demo && gh-pages -d demo_dist","coverage":"jest --collectCoverage","lint-check":"eslint 'src/**/*.{js,ts,tsx}'","lint-fix":"eslint 'src/**/*.{js,ts,tsx}' --fix","release":"standard-version"},"repository":{"type":"git","url":"git+https://github.com/hotjar/hotjar-js.git"},"author":"","license":"MIT","bugs":{"url":"https://github.com/hotjar/hotjar-js/issues"},"homepage":"https://github.com/hotjar/hotjar-js#readme","devDependencies":{"@babel/core":"^7.14.0","@babel/preset-env":"^7.14.1","@babel/preset-typescript":"^7.13.0","@rollup/plugin-commonjs":"^19.0.0","@rollup/plugin-typescript":"^8.2.1","@types/jest":"^26.0.23","@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","babel-jest":"^26.6.3","copy-webpack-plugin":"^8.1.1","css-loader":"^5.2.4","eslint":"^7.26.0","eslint-config-prettier":"^8.3.0","eslint-plugin-jest":"^24.3.6","eslint-plugin-prettier":"^3.4.0","gh-pages":"^3.1.0","html-webpack-plugin":"^5.3.1","jest":"^26.6.3","prettier":"^2.3.0","rollup":"^2.47.0","rollup-plugin-terser":"^7.0.2","standard-version":"^9.3.0","style-loader":"^2.0.0","ts-jest":"^26.5.6","tslib":"^2.2.0","typescript":"^4.2.4","webpack":"^5.37.0","webpack-cli":"^4.7.0","webpack-dev-server":"^3.11.2"},"jest":{"verbose":true,"coverageProvider":"v8","coverageReporters":["text"],"coverageThreshold":{"global":{"branches":90,"functions":90,"lines":90}},"transform":{"^.+\\.ts?$":"ts-jest"}},"gitHead":"86674890ef3f6ba9cd3822a5193de18536dd4ddb","_id":"@bugsplat/hotjar@1.0.4","_nodeVersion":"14.17.4","_npmVersion":"8.1.3","dist":{"integrity":"sha512-LMhK1e1oTgme48XM7KNmCmCjPiqDKchiiSWmTT1rt0AV05fPnoDcXBtdcvCQnTCwdpr8/YjOMUtCINeABGsUVw==","shasum":"121a77ec0e27a94472fefc1e107723597657652e","tarball":"https://registry.npmjs.org/@bugsplat/hotjar/-/hotjar-1.0.4.tgz","fileCount":9,"unpackedSize":10911,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzaMoCRA9TVsSAnZWagAAILsQAIVCJxR8adbqrYFZHoYo\njiGi+DmnCybpi8lQc9m9uLlnVNFBVolhsolazAvsgMOhEi5Mnxspa/oXXy+p\nm0wpHB9skrrufAVKlVRhejMuLjD81Sxdb5evRIYmiWMZ7Iw5oJ4fVyHdMY9o\ny3JHOV4HMU+La5oeFgRlUy8NkmoD0/Tzs5cIOs6xFRjLLTcjwcn41ykBIUCF\ntJYnpazMmAIeempShG1G3Dd4cwCVCas5vCkOPl24RTtRZJXO3lwkpJ+tfnF8\nP8f57KT3P78GL5+a2q+y2mtPUpPXF5pPNW1oumlnxPKvD2F62eRV3uWbcFSf\n0P/lnSDCK7aS7wcdn6rijwpJdTZo4ECBbV/0pJ/V3Rp80lo0ZiMYIhII8Lou\nD5pSVs/wFGydjfa0I6oGQilRfKVzaZx6IQj31QnIDUaFDPuS82+qCj49JqiC\n45pt6lLR/BUdSFCcd+TEVHGWH3Kcuc190Yq8zfV6RR6XKqXVG+y1tC1zAEvz\nWJKJamCPAlfkg2Iwo4C5tdfPuyLIq4ZSi0I7Me8hJhCAELqRkcRpPVjuYGl+\nkkj+tDP1GYGND7P23VtZ39ewk4PzQFm/ehA21X01kRB5la8bhwevh6WTr4Bl\nFUgAOmsuZqGH+r7qmHdZk96wvCstJAR8DF62SLz34JaxYC0aBa8VyYX4cthK\ndrwb\r\n=7/T5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSYq8+M6mmvmJrIA3M9r/pYbR4+B3YdMi3MDkR+gHBmAiEAjlieanW+EaKQp+M1RoWVXtCKyVqnp8ZVlwLZ2aCDyBE="}]},"_npmUser":{"name":"bugsplat","email":"support@bugsplat.com"},"directories":{},"maintainers":[{"name":"bugsplat","email":"support@bugsplat.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hotjar_1.0.4_1636674591665_0.4038653669718517"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-11T23:49:51.613Z","1.0.4":"2021-11-11T23:49:51.818Z","modified":"2022-04-04T21:00:22.493Z"},"maintainers":[{"name":"bugsplat","email":"support@bugsplat.com"}],"description":"Bring Hotjar directly to your application","homepage":"https://github.com/hotjar/hotjar-js#readme","repository":{"type":"git","url":"git+https://github.com/hotjar/hotjar-js.git"},"bugs":{"url":"https://github.com/hotjar/hotjar-js/issues"},"license":"MIT","readme":"# @hotjar/browser\n\n> Bring [Hotjar](https://www.hotjar.com/) directly to your application\n\n## Installation\n\nAdd this package as a dependency in your project, then import the library in your code.\n\n```bash\nyarn add @hotjar/browser\n```\n\n```javascript\nimport Hotjar from '@hotjar/browser';\n```\n\n## Initialize Hotjar\n\nIn order for Hotjar to run, it needs to be initialized with your site ID.\nYou can find your site ID on [this page](https://insights.hotjar.com/site/list) just before your site name.\n\n```javascript\nconst siteId = 123;\nconst hotjarVersion = 6;\n\nHotjar.init(siteId, hotjarVersion);\n```\n\n## Identify API\n\nOne of the main interest of this library is to be able to use [Hotjar Identify API](https://help.hotjar.com/hc/en-us/articles/360033640653-Identify-API-Reference).\n\n```javascript\nconst userId = 'abc_123';\nconst firstName = 'John';\nconst favoriteColor = 'blue';\n\nHotjar.identify(userId, {\n  first_name: firstName,\n  color: favoriteColor,\n});\n```\n\n## Manual URL changes\n\nDepending on how your website routing works, you might need to manually instruct Hotjar when a route change has happened. [More details about URL changes](https://help.hotjar.com/hc/en-us/articles/360034378534).\n\n```\nconst newPage = '/new';\n\nHotjar.stateChange(newPage);\n```\n\n## Example\n\nYou can find a working example on [Githup Pages](https://hotjar.github.io/hotjar-js/).\n","readmeFilename":"README.md"}