userdive
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i userdive

Weekly Downloads

2

Version

3.0.0

License

GPL-3.0

Unpacked Size

43.3 kB

Total Files

9

Last publish

Collaborators

  • userdive