2.0.2 • Published 9 months ago

@openmost/nuxt-matomo v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Matomo for Nuxt

npm version npm downloads License Nuxt

Quick Setup

  1. Add @openmost/nuxt-matomo dependency to your project
# Using pnpm
pnpm add -D @openmost/nuxt-matomo

# Using yarn
yarn add --dev @openmost/nuxt-matomo

# Using npm
npm install --save-dev @openmost/nuxt-matomo
  1. Add @openmost/nuxt-matomo to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    '@openmost/nuxt-matomo'
  ]
})

Config

Register config in the matomo section to your nuxt.config.ts:

runtimeConfig: {
  public: {
    matomo: {
      host: 'https://matomo.example.com',
      containerId: 'xxxxxxxx',
    },
  },
}

You can also use variables with your .env file:

NUXT_PUBLIC_MATOMO_HOST=https://matomo.example.com
NUXT_PUBLIC_MATOMO_CONTAINER_ID=xxxxxxxx
NUXT_PUBLIC_MATOMO_SITE_ID=1
2.0.2

9 months ago

2.0.1

9 months ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago