@swiftcarrot/analytics

yarn add @swiftcarrot/analytics

Usage no npm install needed!

<script type="module">
  import swiftcarrotAnalytics from 'https://cdn.skypack.dev/@swiftcarrot/analytics';
</script>

README

@swiftcarrot/analytics

Installation

yarn add @swiftcarrot/analytics

Usage

import { Analytics } from "@swiftcarrot/analytics";

const analytics = new Analytics("http://localhost:8000");

analytics.identify("carrot");

analytics.track("play track", {
  id: "2gZUPNdnz5Y45eiGxpHGSc",
});

License

MIT