2.0.0 • Published 2 years ago
utrigg-analytics-vue v2.0.0
utrigg-analytics-vue

- This is the repository for Vue 3 and Vue 2
- For React see utrigg-analytics-react.
This plugin will help you implement uTrigg analytics to your single page application.
Requirements
- Vue. >= 2.0.0
- uTrigg account. To send data to
Installing
Package manager
Using npm:
npm install utrigg-analytics-vue
Configuration
Here is an example configuration for the Vue 3.x.x:
import { createApp } from 'vue';
import UtriggAnalytics from 'utrigg-analytics-vue';
const app = createApp();
app.use(
UtriggAnalytics, // analytics plugin
{ alias: 'xxxxxxxxxx' } // config object
);
Here is an example configuration for the Vue 2.x.x:
import Vue from 'vue';
import UtriggAnalytics from 'utrigg-analytics-vue';
Vue.use(
UtriggAnalytics, // analytics plugin
{ alias: 'xxxxxxxxxx' } // config object
);
Config options
Name | Type | Description |
---|---|---|
alias | string | Uniq identifier from uTrigg platform |