1.0.5 • Published 11 months ago

@skyanalytics/nuxt v1.0.5

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

SkyAnalytics Nuxt

SkyAnalytics Nuxt is an adapter for SkyAnalytics that allows you to track your website's traffic and user behavior.

npm version

Installation

npm install @skyanalytics/nuxt
// `nuxt.config.ts`
export default defineNuxtConfig({
  modules: ['@skyanalytics/nuxt'],
  skyanalytics: {
    key: 'source_key',
    host: 'http://localhost:3000',
  },
});

Module options

  • key - The source key of your SkyAnalytics instance.
  • host - The host of your SkyAnalytics instance.
  • captureNavigation - Capture navigation events automatically. Default: true.
  • enabled - Enable or disable tracking. Default: true.

Usage

Directives

<button v-sk-analytics="{ event: 'click', data: { key: 'value' } }">Click me</button>

Composable

const analytics = useAnalytics()

function send() {
  analytics.event('event_name', { key: 'value' })
}
1.0.5

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago