Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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-advanced

auto: 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-domains

spa: 'auto',
// optional, defaults to 'auto'
}],
// ....
]
```