Skip to content

Latest commit

 

History

History
 
 

userdive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

userdive

npm version Build Status styled with prettier

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