https://github.com/brandonpittman/gridsome-plugin-fathom
Quickly set up Fathom Analytics in your Gridsome project.
https://github.com/brandonpittman/gridsome-plugin-fathom
analytics fathom gridsome jamstack vue
Last synced: 2 months ago
JSON representation
Quickly set up Fathom Analytics in your Gridsome project.
- Host: GitHub
- URL: https://github.com/brandonpittman/gridsome-plugin-fathom
- Owner: brandonpittman
- Created: 2019-12-02T08:43:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-31T22:26:51.000Z (about 6 years ago)
- Last Synced: 2025-09-26T16:38:34.445Z (9 months ago)
- Topics: analytics, fathom, gridsome, jamstack, vue
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gridsome-plugin-fathom
Quickly set up Fathom Analytics in your Gridsome project.
```sh
npm install gridsome-plugin-fathom
```
```javascript
// gridsome.config.js
plugins: [
{
use: 'gridsome-plugin-fathom',
options: {
siteId: 'your-site-id',
// useful if you're running a self-hosted fathom instance
trackerUrl: 'your-custom-url',
// declare this to ensure your tracking only occurs on a single host
host: 'something.com',
// set to true for local debugging; defaults to false
debug: false
}
}
]
```
In addition to setting up regular tracking, this plugin makes a
`$trackGoal(id)` function available. Just pass the goal's ID to the function to
track a goal.