Keen IO JavaScript SDK usage for sending data/events

172 views Asked by At

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?

1

There are 1 answers

0
sfalkoff On BEST ANSWER

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 and addEvents to record multiple events with keen-js. Use recordEvent and recordEvents with keen-tracking.js (a library split out of keen-js, recommended for taking advantage of Keen IO’s most advanced event tracking functionality).