gridsome-plugin-fathom

0.0.16 • Public • Published

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',
      // usefal 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.

/gridsome-plugin-fathom/

    Package Sidebar

    Install

    npm i gridsome-plugin-fathom

    Weekly Downloads

    12

    Version

    0.0.16

    License

    MIT

    Unpacked Size

    3.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • brandonpittman