Cyan Stats exposes its library, a series of functions, globally in the window object, and tracking events with Cyan Stats library is piece of cake!

Events

An event can be tracked with the cyanstats.track() function. When called, this function automatically assigns the event to the current visitor.

cyanstats.track('Sign Up Click');

Passing payloads

Sometimes you just need to add more context to your event. For such a cases, you can pass a payload to your call which will be recorded along with the given event.

cyanstats.track("Subscribed", { report: "weekly" });

With the right combination of events and payloads, there are countless options for you to keep track of how people use your websites or web applications. 🚀

© 2024, Abtz Labs | by Rogerio Taques