{"_id":"@aaromp/gatsby-plugin-plausible","_rev":"1-4cfc00078a169749b095e40629aee01e","name":"@aaromp/gatsby-plugin-plausible","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aaromp/gatsby-plugin-plausible","description":"A Gatsby plugin for adding Plausible analytics to your Gatsby site","version":"1.0.0","author":{"name":"Aquil.io","email":"contact@aquil.io"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aaromp/gatsby-plugin-plausible.git"},"bugs":{"url":"https://github.com/Aquilio/gatsby-plugin-plausible/issues"},"main":"index.js","keywords":["gatsby","gatsby-plugin","plausible","analytics"],"scripts":{"build":"babel src --out-dir . --ignore __tests__","watch":"babel -w src --out-dir . --ignore **/__tests__","prepublishOnly":"cross-env NODE_ENV=production npm run build","version":"auto-changelog -p && git add CHANGELOG.md","lint":"eslint ./src/**/*.js","format":"prettier --write 'src/**/*.js'","test":"npm run lint && jest --coverage"},"dependencies":{"@babel/runtime":"^7.9.2","react":"^16.13.1","minimatch":"3.0.4"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/runtime":"^7.9.2","auto-changelog":"^2.0.0","babel-eslint":"^10.1.0","babel-preset-gatsby-package":"^0.3.1","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","eslint-plugin-prettier":"^3.1.3","eslint-plugin-react":"^7.19.0","jest":"^25.3.0","prettier":"^2.0.4"},"peerDependencies":{"gatsby":">=2.0.0","react":">=16.0.0","react-dom":">=16.0.0"},"homepage":"https://github.com/aaromp/gatsby-plugin-plausible#readme","gitHead":"cf3c2e50598c5ad93ea453372f9e350a5b8b95f2","_id":"@aaromp/gatsby-plugin-plausible@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.7","dist":{"integrity":"sha512-KdAFEBaZKyu3/DOmqwkhtjbEWka5qvJ3hC1sc7xjCQSv0C29NW2AhsOD6e33KaGRwkifEcpCR/noVx8k5o86uw==","shasum":"5abde486b84360f98019d5bfadaf1d6a64524a18","tarball":"https://registry.npmjs.org/@aaromp/gatsby-plugin-plausible/-/gatsby-plugin-plausible-1.0.0.tgz","fileCount":13,"unpackedSize":12086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfPj5GCRA9TVsSAnZWagAAYnAP/jvRK7aA9CnOwoxhkOnJ\nfNhXJaOPzFo6bM6+7D20N7siEprsnyja0PW26OwdpAaprfitDVgK8mdMXe9g\nmjPsqxqfjqfvMSmw+uEiK37CPFRoD3rR5pVMjnJ0xJThh3qoQpxe+QfTcNV+\nMRmSXioRRE4uMElXHI+rDOsBMQpImY8FK6Pcl3m5S64ly7yJdfuRy10IOau9\n2h6//L9do8SK29BWDr65PVXp9zkWmXcATtaqpu//0vd02rCsOmk349z14zNk\nIQAUuBFo/9yt4U5LEaDEcwLXn9AUkA4IlhtnFPMKMQh4HLdw7zxyirm5Fbqo\n8x/ZCClq3Ab3t6+aYavE63DKY+YjegcqN07gwFgQv1dyK9cX5gEIZtAEkM3+\nx3OEBS15lEOCs6j1flCcrwVl3kzzvwy0fH8AyqQHuTIDdTOs09BmyQw5Yolk\nVmAJpyGV2XK7HkHoUgKT7B02Uvb9gU8MtcSCUd7ffMoyNbDHIuPJGiiqEfsP\nsRAbQAQXg3Ee5B/CVTkq+12/RYa2OQa85xn44P0fatZv41IBKvOrbtF+rZQO\nwbNK/S0sQvHKpLAcOSkvxoFMV0Bau17EXneLCfNbqLSvRuZf+UDwR52XGlqg\n4r8VqePicxFLdNTjAskPg7+2pTN5t5oX/AWI7zjKIaX5JT1frIy/kjUL1RsQ\nDfQz\r\n=y85U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVHTCHgZ8Fg4zyrbsWEo5Ug9r/4Z9kPXfh+OC2+fliqwIgebmZ6XLdVVpdOD+c9KxY+7Q/bJUA6tvwRXFgWHv/Xe4="}]},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"_npmUser":{"name":"aaromp","email":"aaron.wa@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-plugin-plausible_1.0.0_1597914694499_0.7710452023384216"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-20T09:11:34.459Z","1.0.0":"2020-08-20T09:11:34.689Z","modified":"2022-04-04T10:55:31.822Z"},"maintainers":[{"name":"aaromp","email":"aaron.wa@gmail.com"}],"description":"A Gatsby plugin for adding Plausible analytics to your Gatsby site","homepage":"https://github.com/aaromp/gatsby-plugin-plausible#readme","keywords":["gatsby","gatsby-plugin","plausible","analytics"],"repository":{"type":"git","url":"git+https://github.com/aaromp/gatsby-plugin-plausible.git"},"author":{"name":"Aquil.io","email":"contact@aquil.io"},"bugs":{"url":"https://github.com/Aquilio/gatsby-plugin-plausible/issues"},"license":"MIT","readme":"# gatsby-plugin-plausible\n\n[![npm package](https://flat.badgen.net/npm/v/gatsby-plugin-plausible)](https://badgen.net/npm/v/gatsby-plugin-plausible)\n[![Maintainability](https://flat.badgen.net/codeclimate/maintainability/Aquilio/gatsby-plugin-plausible)](https://codeclimate.com/github/Aquilio/gatsby-plugin-plausible/maintainability)\n![Dependabot](https://flat.badgen.net/dependabot/thepracticaldev/dev.to?icon=dependabot)\n\nA Gatsby plugin for adding [Plausible](https://plausible.io/) analytics to your Gatsby site.\n\nThe plugin includes the Plausible tracking script. It supports using a custom domain and excluding specific paths from recording page views.\n\n---\n\n- [Install](#install)\n  - [Manual](#manual)\n  - [Gatsby Recipe](#gatsby-recipe)\n- [How to use](#how-to-use)\n  - [Options](#options)\n  - [Pageview events](#pageview-events)\n  - [Triggering custom events](#triggering-custom-events)\n- [Changelog](#changelog)\n- [License](#license)\n\n## Install\n\n### Manual\n\n1. Install `gatsby-plugin-plausible`\n\n   `npm install --save gatsby-plugin-plausible`\n\n2. Add plugin to `gatsby-config.js`\n\n   ```javascript\n   // In your gatsby-config.js\n   module.exports = {\n     plugins: [\n       // The only required option is the domain\n       {\n         resolve: `gatsby-plugin-plausible`,\n         options: {\n           domain: `aquil.io`,\n         },\n       },\n     ],\n   };\n   ```\n\n### Gatsby Recipe\n\nThis will install `gatsby-plugin-plausible` and add a sample configuration.\n\n1. Upgrade gatsby-cli and gatsby to the latest version:\n\n   `npm install -g gatsby-cli@latest`\n   `npm install gatsby@latest`\n\n2. Run the recipe\n   `gatsby recipes https://raw.githubusercontent.com/Aquilio/gatsby-plugin-plausible/master/gatsby-recipe-plausible.mdx`\n\n3. Update `gatsby-config.js` [options](#options).\n\nTo read more about recipes check out the [announcement](https://www.gatsbyjs.org/blog/2020-04-15-announcing-gatsby-recipes/).\n\n## How to use\n\n_NOTE: By default, this plugin only generates output when run in production mode. To test your tracking code, run `gatsby build && gatsby serve`_.\n\n### Options\n\n| Option         | Explanation                                            |\n| -------------- | ------------------------------------------------------ |\n| `domain`       | The domain configured in Plausible (required)          |\n| `customDomain` | Custom domain (if configured in Plausible's dashboard) |\n| `excludePaths` | Array of pathnames where page views will not be sent   |\n\n### Pageview events\n\nPageviews are sent automatically when a user changes routes, including the initial load of your site.\n\n### Triggering custom events\n\nTo track goals and conversions you have to trigger custom events first.\n\n```js\nwindow.plausible('Signup', {\n  callback: () => console.info('Sent Signup event'),\n});\n```\n\nThe event name can be anything. The second argument is an object with options. The only supported option is `callback` that is called once the event has been sent.\n\n_NOTE: Custom events will not show up right away. You have to configure a goal in your Plausible dashboard_.\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md).\n\n## License\n\n[MIT](https://github.com/Aquilio/gatsby-plugin-plausible/blob/master/LICENSE) © [Aquil.io](https://aquil.io)\n","readmeFilename":"README.md"}