3.0.0 • Published 5 years ago
userdive v3.0.0
userdive
Official USERDIVE loader from cdn.userdive.com
Table of Contents
Install
npm install userdive --save
Usage
import factory from "userdive";
// create global entrypoint & load agent.js from cdn
const _ud = factory();
_ud("create", "id", "auto");
_ud("send", "pageview");
import factory from "userdive";
const myTracker = factory("myTracker"); // customize global function name
myTracker("create", "id", "auto");
myTracker("send", "pageview");
more examples
Contribute
PRs accepted. join us
License
GPLv3. Full license text is available in LICENSE