
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
gatsby-plugin-simple-analytics
Advanced tools
Simple Analytics is a clean, simple, and privacy friendly analytics tool. Actionable data in a beautiful dashboard. It does not use cookies and you can bypass ad blockers. Make sure to signup to get most value out of this plugin.
Run the following command:
npm install gatsby-plugin-simple-analytics --save-dev
It tracks page views with support for pushState navigation. It sends the data to Simple Analytics and it will be available in your dashboard. You need to have a paid subscription for it to work.
Add our plugin to gatsby-config.js
plugins: [
{
resolve: 'gatsby-plugin-simple-analytics',
options: {
trackPageViews: true
}
}
]
If you want to set a custom domain, use this config:
plugins: [
{
resolve: 'gatsby-plugin-simple-analytics',
options: {
eventsGlobal: 'sa',
events: true,
trackPageViews: true,
ignorePages: ['pathname']
}
}
]
Read our docs on the custom domain feature.
Confirmic provides a privacy-by-design API to ethically manage your users' data. It's pretty cool.
If you want to use it with Confirmic's data-micropolicy use this config:
plugins: [
{
resolve: 'gatsby-plugin-simple-analytics',
options: {
metomic: 'POLICY-SLUG'
}
}
]
It will result in something like this:
<script src="https://scripts.simpleanalyticscdn.com/latest.js" async="" defer="" type="text/x-metomic" data-micropolicy="POLICY-SLUG">
If you know how to improve this plugin, please submit a PR, we are usually fast with merging it.
FAQs
Gatsby plugin to add Simple Analytics onto a site
The npm package gatsby-plugin-simple-analytics receives a total of 86 weekly downloads. As such, gatsby-plugin-simple-analytics popularity was classified as not popular.
We found that gatsby-plugin-simple-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.