An open API service indexing awesome lists of open source software.

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.

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.