Add Plausible Analytics

How to add Plausible Analytics to your Hyas website.

Installation

npm install plausible-tracker -D

Usage

Add to ./assets/js/plausible.js:

import Plausible from 'plausible-tracker'

const { trackPageview } = Plausible({
  domain: 'my-app.com',
})

trackPageview()

Resources

Edit this page on GitHub