I am trying to use the Keen IO JavaScript SDK (keen.js) to collect and analyze my user events. I see documentation describing how to add new events but at times it refers to using the function recordEvent() and in others the function addEvent().
Do they do different things? Which should I use?
Both of those methods can be used to send events to Keen IO. The difference is which Keen IO JavaScript SDK you use for event tracking.
Use
addEvent
to record a single event andaddEvents
to record multiple events with keen-js. UserecordEvent
andrecordEvents
with keen-tracking.js (a library split out of keen-js, recommended for taking advantage of Keen IO’s most advanced event tracking functionality).