Skip to content

amxmln/gridsome-plugin-plausible-analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gridsome-plugin-plausible-analytics

Adds plausible analytics to your gridsome site.

Installation

  • npm install gridsome-plugin-plausible-analytics
  • yarn add gridsome-plugin-plausible-analytics

Usage

In gridsome.config.js:

module.exports = {
  plugins: [
    {
      use: 'gridsome-plugin-plausible-analytics',
      options: {
        dataDomain: 'blog.example.com',
        outboundLinkTracking: false
      }
    }
  ]
}   

Options

dataDomain

  • Type: String
  • Default: None, field is required

Domain you entered on plausible.io e.g. blog.example.com.

outboundLinkTracking (optional)

  • Type: boolean
  • Default: false

Use Outbound Link Click Tracking. You also need to activate it in your Account. See Step 2 on https://docs.plausible.io/outbound-link-click-tracking#step-2-create-a-custom-event-goal-in-your-plausible-analytics-account.

customDomain (optional)

  • Type: 'String'
  • Default: None

Custom domain you set up on plausible.io to serve the js-snippet e.g. stats.[yourdomain].com (see https://docs.plausible.io/custom-domain)

About

Plausible Analytics plugin for Gridsome

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%