https://github.com/sweenr/gatsby-plugin-firstparty
Gatsby plugin for Firstparty analytics tool
https://github.com/sweenr/gatsby-plugin-firstparty
Last synced: 2 months ago
JSON representation
Gatsby plugin for Firstparty analytics tool
- Host: GitHub
- URL: https://github.com/sweenr/gatsby-plugin-firstparty
- Owner: sweenr
- Created: 2022-02-24T17:26:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-24T17:38:47.000Z (over 4 years ago)
- Last Synced: 2025-09-13T15:51:24.370Z (10 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gatsby-plugin-firstparty
Gatsby plugin to connect your site to [Firstparty](https://firstpartyhq.com/) analytics tool.
## Install
`npm install --save gatsby-plugin-firstparty`
## How to use
```javascript
// gatsby-config.js
module.exports = {
...
plugins: [
{
resolve: `gatsby-plugin-firstparty`,
options: {
// your source URL starting with "fp."
sourceUrl: "fp.yourdomain.com",
// your write key for this source from the Sources page
writeKey: "YOUR_SOURCE_WRITE_KEY",
}
},
...
]
}
```
## How it works
This plugin adds the Firstparty tracking script to the `` of every page as documented in the Firstparty setup instructions. After downloading the script, it loads the firstparty object with your write key and domain and logs the page view.