Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yabhq/nuxt-fathom
Fathom analytics for NuxtJS
https://github.com/yabhq/nuxt-fathom
fathom-analytics javascript node nuxt vuejs
Last synced: about 1 month ago
JSON representation
Fathom analytics for NuxtJS
- Host: GitHub
- URL: https://github.com/yabhq/nuxt-fathom
- Owner: yabhq
- Created: 2020-02-10T14:43:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-25T23:19:53.000Z (over 3 years ago)
- Last Synced: 2023-12-19T17:14:14.384Z (11 months ago)
- Topics: fathom-analytics, javascript, node, nuxt, vuejs
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nuxt Fathom
Implement Fathom analytics in your Nuxt app.
## Quick Install
```
$ npm i @yabhq/nuxt-fathom
```Configure the module in your **nuxt.config.js**:
```JavaScript
modules: [
// ....
['@yabhq/nuxt-fathom', {
siteId: 'XXXXXX', // required// Advanced configuration
// See here for details: https://usefathom.com/support/tracking-advancedauto: true,
// optional, defaults to `true` (automatically track page views)canonical: true,
// optional, defaults to `true`excludedDomains: 'example.com,localhost',
// optional, defaults to ''honorDoNotTrack: false,
// optional, defaults to `false`includedDomains: 'example.com,localhost',
// optional, defaults to ''scriptSrc: 'https://bluedonkey.example.com/script.js',
// optional, defaults to 'https://cdn.usefathom.com/tracker.js'
// See here for details: https://usefathom.com/support/custom-domainsspa: 'auto',
// optional, defaults to 'auto'
}],
// ....
]
```