- 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.
- Vue. >= 2.0.0
- uTrigg account. To send data to
Using npm:
npm install @utrigg-analytics/vue
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
);
Name | Type | Description |
---|---|---|
alias | string | Uniq identifier from uTrigg platform |