fusion-core-js
v1.0.0
Published
Send analytics data from JS/TS based products. (React, Angular, Vue, Node)
Downloads
2
Readme
What is this ?
Send user behaviour analytics data from JS/TS based products
Installations
npm -i fusion --save
Then...
import { Fusion } from "fusion-analytics";
const fusion = new Fusion();
fusion.init("YOUR_FUSION_API_KEY", "FUSION_HOST_URL", true);
//Resgiter ice_cream property and value
fusion.register({ ice_cream: "vanilla-chocolate" });
// Send an event with above property added
fusion.track("event-with-icecream");
//Unresgiter ice_cream property
fusion.unregister("ice_cream");
//Custom event with no ice_cream property
fusion.track("event-with-no-icecream");
//Manually send pageview event
fusion.track("Pageview");