1.0.0 • Published 1 year ago

counter-analytics-vue v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Counter Analytics Vue 3 integration

npm version Build Status Sourcegraph Netlify Status

Unofficial Counter Analytics integration for Vue.js.

Integration

Install

Run the following command to install in your project:

npm install counter-analytics-vue

Or with yarn:

yarn add counter-analytics-vue

Or with pnpm:

pnpm add counter-analytics-vue

Basic usage

You can now import, and use the Counter Analytics hook on your project:

// ./src/main.ts

import { createApp } from 'vue'
import CounterAnalytics from 'counter-analytics-vue'

const app = createApp({})

app.use(CounterAnalytics, {
  id: 'COUNTER_ANALYTICS_ID',
  utcOffset: 0,
})

Advanced options

You can use useCounterAnalytics hook, it accepts an option object as the parameter.

You can always create an issue in case of any questions! 😀

Contribution

Feel free to contribute to the source code by opening a pull requests.

For any questions, you can open an issue, refer to the official Counter project or reach them at hey@counter.dev.

Donate

You can support this project by donating me at:

License

This source code is available under the MIT LICENSE.