{"_id":"@alexseitsinger/google-analytics","_rev":"2-d4486fadd6d19f28512ee00af3532ac2","name":"@alexseitsinger/google-analytics","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@alexseitsinger/google-analytics","version":"0.1.0","description":"A react component that uses an event emitter with React-GA to connect to Google Analytics","main":"dist/main.js","homepage":"https://github.com/alexseitsinger/google-analytics#readme","author":{"name":"Alex Seitsinger","email":"alexseitsinger@gmail.com","url":"https://www.alexseitsinger.com"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/alexseitsinger/google-analytics.git"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","@babel/preset-react":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.2.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","jest":"^23.6.0","webpack":"^4.27.1","webpack-cli":"^3.1.2"},"dependencies":{"react":"^16.6.3","prop-types":"^15.6.0","react-ga":"^2.5.3","underscore":"^1.8.3"},"scripts":{"build":"./node_modules/.bin/webpack --config=webpack.config.js","test":"./node_modules/.bin/jest test"},"_id":"@alexseitsinger/google-analytics@0.1.0","dist":{"shasum":"cdc5b80066b09198d5156dfdcd761172153691bc","integrity":"sha512-sOJPK/PGen+YnFTIPrRa6sUfnkABVQ+eo5dLchz2v8PSbbkoS+AGqEuMwdfU5NNR8kispQcEXOw+Z702X9/DXw==","tarball":"https://registry.npmjs.org/@alexseitsinger/google-analytics/-/google-analytics-0.1.0.tgz","fileCount":5,"unpackedSize":45401,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJreQCRA9TVsSAnZWagAAEXQP/1IF10WXDzJ1Ijjcqd4p\nIGmmxlYuf4EMMwtdLJdcZ1aFyF+pD/MtJ0StvrBSZzoSTYjNKOpphr5qkqWj\nCCTgxnR1kGzMrGZuXJZRZtWNDHN3/X1S0fJqWIBxkwpUbzo2GO4rQlxZJdQz\nEJseUwBHXeBJjAIx7r60GCT3XfW7rnZL232b4jv+rP/nTc7YKKKoNgjdJ/Bg\nS0lK9KsZ3DE49Yq6AS+KUNfUWLATmtKEt3WZUCTdgiIPzxWdfcB6352hFOCt\nhWO9TsREVEmse0yddLxSvRi9AKVYvjf7RB5Qv4jDNDyr4nBGAvfdb7mavx7E\no0DCEAhqGRTw3WerPDc1BQZkZ8BEosuCCQrwJtt6VW7QPkhkMA/14c5uICq2\naRa9lkZh8YbIRpTzB158unbZRndIkxi5Qp75lKILguCqkXdAxL+hCg1vLTuW\npkcQLJAmzRXyiBIUsU0fORQ02qLHL2UMybZHdmSe1kG/O07b3DsV/tRq4cbL\nPJ9ixP6pHQyk1vGf9uagPB6TP9pp9JYIsJAXJGmzKp8qkDjYywyykRrgVbzA\nCx4q2dN4FSk5YuDgtnbVgW9bTxbXaAHgro5MIkLPyf+VBFV4XUgf+za8Z8pJ\nY2LkYQ2uaJVCKF8SL+bn+9XYhNXLeOTsYc7F6YR1DBr8EwIZSXzEZaCHOuO9\nFWW/\r\n=7H5h\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCct7yaJF51WIOOHn2kpgpllJsgGauACZXSdiwBkuEo7gIhAIV52QRZxOmTXvBz1cSta8dvGQBGrSkbjI2mSN27kAvd"}]},"maintainers":[{"name":"alexseitsinger","email":"alexseitsinger@gmail.com"}],"_npmUser":{"name":"alexseitsinger","email":"alexseitsinger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-analytics_0.1.0_1546041231243_0.18483499057675346"},"_hasShrinkwrap":false},"0.1.1":{"name":"@alexseitsinger/google-analytics","version":"0.1.1","description":"A react component that uses an event emitter with React-GA to connect to Google Analytics","main":"dist/main.js","homepage":"https://github.com/alexseitsinger/google-analytics#readme","author":{"name":"Alex Seitsinger","email":"alexseitsinger@gmail.com","url":"https://www.alexseitsinger.com"},"license":"BSD-2-Clause","repository":{"type":"git","url":"https://github.com/alexseitsinger/google-analytics.git"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.2.0","@babel/preset-react":"^7.0.0","@babel/plugin-proposal-class-properties":"^7.2.1","babel-loader":"^8.0.4","enzyme":"^3.7.0","enzyme-adapter-react-16":"^1.6.0","jest":"^23.6.0","webpack":"^4.27.1","webpack-cli":"^3.1.2"},"dependencies":{"react":"^16.6.3","prop-types":"^15.6.0","react-ga":"^2.5.3","underscore":"^1.8.3"},"scripts":{"build":"./node_modules/.bin/webpack --config=webpack.config.js","test":"./node_modules/.bin/jest test"},"_id":"@alexseitsinger/google-analytics@0.1.1","dist":{"shasum":"216675d8809e53c30f3851c7d00901d26c91ad23","integrity":"sha512-ygkF6/E9UIQ8TNY58p7xQ3qYGW2GpzI9Flu7MG7/1zz5ZGs1FfxlaYT1Wz277EAtVyjPI21W7C6Trt3hkYRfbw==","tarball":"https://registry.npmjs.org/@alexseitsinger/google-analytics/-/google-analytics-0.1.1.tgz","fileCount":5,"unpackedSize":45417,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJsvGCRA9TVsSAnZWagAAzVEQAI8AdBdlrxpUwfdnSxiT\npHK5E4eM6jFaCCRZ/jIsV9OOmgSBVFFiRr10DYf+KCrVxQ8TbONbcw4pXDxD\nseklpHjnbi4Ev+u027c3pIRr+hIFDOdTKo6Y0X+STdMmHJrdxw4qtHn4hRLF\nCCyI/XwApDIoJGzw20NhN9GC6nelnSh0QsyN2V1x4tIY0D3marNwAuoUURqT\nEmt55B/gBHK24AkmIxOOp67n4ezJnf1DUzOafwQJz3AciHYqWeDgJDUeZffl\nZFPNXH51xUbzZBAtuo+7e/bKobBcJCyS+WW86pI4UgmQKTd2NMlElpeDfyxl\n5da2qpB1CXUuE4Md2ok7LwssSoNFPK7jKHkTWGMIulaXtZOJ29H4EqMpk35U\nh0HpFjkfsEVt8Oc/sxuSDJfc2YU4/s0WgiG5fn1JClBVIm6TVGwghxXlm5UZ\nuAVE9aXClQ/NX1Y8tpq7kRFXqhD8nRCZs39fUK6sJXmWCwLPkO94pZmwEf3U\nFIKSKinF4ruv0Nn1YPuObR6CCiDI8BHGBpnrl+l0Y9RGznSu3Iv/A+HaCXp4\nFqlRbHSSAKnrYo6h4TNMIe+XEv/MsH7/8vcfLRx/uJx4EhQGZOjmsiB4k2+Y\nDFZKa3NtVHUVyKutrUKvCnhDOblao0mBbGRQLhw6N4guaGgiO+lM1hX4JUWf\nxURw\r\n=pBdw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsIXQNb3XFFKXFsDWop0N7uG7mwifX3ywM88LB6kvUfgIgPrAQqw4rmNrd0nvr52SnL1Q+6fIMUdRlxXS9DPMRnnU="}]},"maintainers":[{"name":"alexseitsinger","email":"alexseitsinger@gmail.com"}],"_npmUser":{"name":"alexseitsinger","email":"alexseitsinger@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/google-analytics_0.1.1_1546046405780_0.50607918131066"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-28T23:53:51.060Z","0.1.0":"2018-12-28T23:53:51.393Z","modified":"2022-04-04T12:41:35.186Z","0.1.1":"2018-12-29T01:20:05.951Z"},"maintainers":[{"name":"alexseitsinger","email":"alexseitsinger@gmail.com"}],"description":"A react component that uses an event emitter with React-GA to connect to Google Analytics","homepage":"https://github.com/alexseitsinger/google-analytics#readme","repository":{"type":"git","url":"https://github.com/alexseitsinger/google-analytics.git"},"author":{"name":"Alex Seitsinger","email":"alexseitsinger@gmail.com","url":"https://www.alexseitsinger.com"},"license":"BSD-2-Clause","readme":"# Google Analytics\n\n## Description\n\nA react component that uses an event emitter with React-GA to connect to Google Analytics.\n\n## Props\n\n-   location - (Object, Required) - Location of the browser.\n-   isEnvironment - (Boolean, Required) - Specify what environmen is being used to determine if the component should connect to Google Analytics. Useful to avoid using it in development.\n-   id - (String, Required) - The Google Analytics ID.\n-   emitter - (Object, Required) - The event emitter to use.\n-   modalviewEventName (String, Optional) - The event name to use for modalviews.\n-   pageviewEventName - (String, Optional) - The event name to use for the pageviews.\n-   eventEventName - (String, Optional) - The event name to use for the events.\n-   timingEventName - (String, Optional) - The event name to use for the timings.\n\n## Usage\n\n```javascript\nimport React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { withRouter } from \"react-router\"\n\nimport emitter from \"../events\"\n\n// NOTE: ENVIRONMENT_NAME is a global variable via webpack.DefinePlugin\n// NOTE: GOOGLE_ANALYTICS_ID is served via dotenv-webpack\n\nfunction Layout({ location }) {\n\treturn (\n\t\t<div>\n\t\t\t<GoogleAnalytics\n\t\t\t\tisEnvironment={ENVIRONMENT_NAME === \"production\"}\n\t\t\t\tid={process.env.GOOGLE_ANALYTICS_ID}\n\t\t\t\temitter={emitter}\n\t\t\t\tlocation={location}\n\t\t\t/>\n\t\t\t<div>Page</div>\n\t\t</div>\n\t)\n}\n\nLayout.propTypes = {\n\tlocation: PropTypes.object.isRequired\n}\n\nconst LayoutWithRouter = withRouter(Layout)\n\nexport default LayoutWithRouter\n```\n","readmeFilename":"README.md"}