Skip to content

brandonpittman/gridsome-plugin-fathom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

gridsome-plugin-fathom

Quickly set up Fathom Analytics in your Gridsome project.

npm install gridsome-plugin-fathom
// 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.

About

Quickly set up Fathom Analytics in your Gridsome project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published