Plausible Vue
@huntersofbook/plausible-vue
huntersofbook offers specific tools for the vue ecosystem.
Usage Vue 3
import { createPlausible } from '@huntersofbook/plausible-vue'
const plausible = createPlausible({
init: {
domain: 'domain.com',
apiHost: 'https://host.com',
trackLocalhost: true,
},
settings: {
enableAutoOutboundTracking: true,
enableAutoPageviews: true,
},
partytown: false,
})
app.use(plausible)
Thanks
Thanks to @surmon-china, this project loadScript function is heavily inspired by surmon-china.github.io.
License
MIT License © 2022-PRESENT productdevbook