0.1.4 • Published 3 years ago
vector-tracker v0.1.4
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)