{"_id":"@cuppilekkia/event-tracker","_rev":"1-5c7efdead64ddc73d30ff3558e9197dd","name":"@cuppilekkia/event-tracker","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@cuppilekkia/event-tracker","version":"1.0.2","description":"Browser interaction events Tracker","main":"dist/tracker.js","scripts":{"test":"jest","test:watch":"jest --watch","build":"webpack --config webpack.prod.js","start":"webpack-dev-server --open --config webpack.dev.js","lint":"eslint . --fix"},"keywords":[],"author":{"name":"Antonio Coppola"},"license":"ISC","homepage":"https://github.com/cuppilekkia/event-tracker#readme","repository":{"type":"git","url":"git+https://github.com/cuppilekkia/event-tracker.git"},"publishConfig":{"access":"public"},"dependencies":{"@babel/polyfill":"^7.7.0","core-js":"^3.5.0","js-cookie":"^2.2.1"},"devDependencies":{"@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/preset-env":"^7.7.6","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/git":"^9.0.0","@semantic-release/github":"^7.1.1","@semantic-release/release-notes-generator":"^9.0.1","babel-jest":"^26.3.0","babel-loader":"^8.0.6","babel-plugin-syntax-dynamic-import":"^6.18.0","clean-webpack-plugin":"^3.0.0","eslint":"^7.10.0","eslint-config-airbnb-base":"^14.2.0","eslint-loader":"^4.0.2","eslint-plugin-import":"^2.19.1","eslint-plugin-json":"^2.1.2","html-webpack-plugin":"^4.5.0","jest":"^26.4.2","semantic-release":"^17.1.2","webpack":"^4.41.2","webpack-cli":"^3.3.10","webpack-dev-server":"^3.9.0","webpack-merge":"^5.1.4"},"gitHead":"94d47f8d96bc929f3c39ab70a93be61e04c33e38","bugs":{"url":"https://github.com/cuppilekkia/event-tracker/issues"},"_id":"@cuppilekkia/event-tracker@1.0.2","_nodeVersion":"12.18.4","_npmVersion":"6.14.8","dist":{"integrity":"sha512-DAfVaCZcI6CPQc4/lOEQ5+j9qVsW2GDdLiFoVJo9wSAyZ+Qfk/Mfosyxwbah7HjbuMrEMs0LJhNYiYFYAP9Grg==","shasum":"73ca882020e62f953c45b44ef8aaa95c23313dcd","tarball":"https://registry.npmjs.org/@cuppilekkia/event-tracker/-/event-tracker-1.0.2.tgz","fileCount":6,"unpackedSize":14569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfehi8CRA9TVsSAnZWagAAPPUP/08etFuzbx6jIP/AUaRL\n+5DnAi598MQ+7Mu+s0+r8O8YoBqou2EQ+TqNP2Lr4mgPMI7qbNEvxa77A0Xm\n0Tqa3LcqriIyLYViGSEIhAbLt+GtbQDFLwUO4mB6Anh2CcgPE4+5qg9CeWjt\nTyevKKRPbHWK9jMYF0AyD0wQQb9a5Jrmvzo/4giW241aYlZPoSPflmxJixqn\neLCjvOOmgGjjXkBQQjX0ySPOn/DpvnUOgn7XjORNcbo5TKJhcuFeSPhn2fcy\nXAGgBBQrj+EmWpWZzVXKejNOBFDx+b/Q/RxJHLE9zW5JhT4EahpN6iz7ocAW\nVjgNhLFNbpRaIaIv7DtkmnIw4P+HdMugQBG+TAHjrhvNFJzcCWZ+gWPz8X30\nAqX/ru8Zo8bT3f3d04EH/KClBf2p6LnL/zp29VhdP2KlYYwQUaYiBzqVDOpf\n0JefY90jb0eWVpBbzeZLlmyzZgAfbapIPFBOU7COkZ5CMtoIrGT/60/glqbO\nvdBdHdXlMy8jqArQ0LvIgIlo6DfNQNPGNMfU7CZwF6Au6VtcQMYtKUVCfqK6\nD0rxuoTy0YcVPwX1nfFJGbUcX5ZHQ43/NVkTK4bXaRFIMy/EYuvNft70tTVO\nZYUUQDMjgBu7VVUzToZ1Cze63a+9LCp2JGT+Mc6L8Z6GPTywaWafjGyq7a3i\nfLlF\r\n=BdVI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTB68NSSutZUGYLNx1uKOTZmb+3aGjTUlo9i4uuiiYYwIgC1GEo5hdLt0jgcu82tWxyExYmfEkUWA5KUpH5tKgW3k="}]},"maintainers":[{"name":"cuppilekkia","email":"coppola.ant@gmail.com"}],"_npmUser":{"name":"cuppilekkia","email":"coppola.ant@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-tracker_1.0.2_1601837243480_0.5479733608043937"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-04T18:47:23.445Z","1.0.2":"2020-10-04T18:47:23.619Z","modified":"2022-04-05T02:12:29.022Z"},"maintainers":[{"name":"cuppilekkia","email":"coppola.ant@gmail.com"}],"description":"Browser interaction events Tracker","homepage":"https://github.com/cuppilekkia/event-tracker#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/cuppilekkia/event-tracker.git"},"author":{"name":"Antonio Coppola"},"bugs":{"url":"https://github.com/cuppilekkia/event-tracker/issues"},"license":"ISC","readme":"# Event Tracker\n## @cuppilekkia/event-tracker - JS Event Tracking\n\n### [Code coverage](./coverage/lcov-report/index.html)\n\nCollect and send data to an API endpoint, uses the SendBeacon method if available in the browser, otherwise classic POST request.\n\nThis package is built using webpack 4.\n\n\n## Getting started\n\n### Download \n\nVia npm\n\nMake sure to have in your root folder the `.npmrc` file with the settings to access the private NPM registry.\n\n```bash\n$ npm install @cuppilekkia/event-tracker --save\n```\n\n\n### Usage\n\n#### ES6 modules\n\n```javascript\nimport { Tracker } from '@cuppilekkia/event-tracker';\n```\n\n#### CommonJS\n\n```javascript\nconst Tracker = require('@cuppilekkia/event-tracker');\n```\n\n### Initialization\n\n```javascript\nwindow.trackerClient = new Tracker({\n  api: '[API PATH i.e. \"/data\" ]',\n  host: '[API HOST i.e. \"https://mydatacollector.com\"]',\n});\n```\n\n#### File include [WIP]\n\nLink `tracker.js` in your HTML :\n\n```html\n<script src=\"tracker.js\"></script>\n<script>\n  var trackerClient = new tracker.Tracker({ \n    api: '[API PATH i.e. \"/data\" ]', \n    host: '[API HOST i.e. \"https://mydatacollector.com\"]' \n  });\n</script>\n```\n\n### Send data\nSend any kind of object as payload, containing all the data you want to send.\n\n```javascript\nvar payload = {\n  key1: value,\n  key2: {...},\n  ...\n}\ntrackerClient.push(payload);\n```\n\n## DEVELOPMENT\n[add here development notes]\nthis package uses `semantic release` so please follow the sintax like:\n\n| Commit message                                                                                                                                                                                   | Release type               |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|\n| `fix(pencil): stop graphite breaking when too much pressure applied`                                                                                                                             | Patch Release              |\n| `feat(pencil): add 'graphiteWidth' option`                                                                                                                                                       | ~~Minor~~ Feature Release  |\n| `perf(pencil): remove graphiteWidth option`<br><br>`BREAKING CHANGE: The graphiteWidth option has been removed.`<br>`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |\n\n## TODO\n- build a demo page with additionally a test node server\n- find a way to test cookie creation\n- fix coverage building and job to move into public\n","readmeFilename":"README.md"}