vector-tracker

Dedicated tracker for Vector Analytics.

Usage no npm install needed!

<script type="module">
  import vectorTracker from 'https://cdn.skypack.dev/vector-tracker';
</script>

README

Vector Tracker

Dedicated tracker for Vector Analytics.

Getting Started

CDN

<script
  async
  data-vaid="[id]"
  data-vaapi="[api]"
  data-vaspa="[true]"
  src="https://cdn.jsdelivr.net/npm/vector-tracker@0.1/lib/vector.min.js"
></script>

npm

npm install --save vector-tracker
import useVector from 'vector-tracker';
const { vecView, vecLeave, vecEvent } = useVector('[id]', '[api]', true);

Contribute

This project uses husky and lint-staged to format source code, so the git commands may be slow due to the Prettier formatting workflow.

After clone the repo, you can simply:

npm install
npm run init
npm run build

License

This project is released under MIT License, for more information read the LICENSE.

Copyright © 2020-present DSRKafuU (https://dsrkafuu.su)