@propertechnologies/espia
v0.4.0
Published
Typed wrapper around analytics.proper.ai
Downloads
143
Readme
Espia 🕵️
Wrapper around analytics.proper.ai API to make sure all requests are typed correctly and allow sensible defaults of the page.
Installation
npm install --save @propertechnologies/espia
Usage
import { espia } from "@propertechnologies/espia";
espia({
source: "your-project-name",
});
then track events anywhere in your project
import { track } from "@propertechnologies/espia";
track("category_label", { foo: "otional object" });