Our documentation is changing, please click here to enjoy it!

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.




To use the additional parameters of the custom events for targeting purposes, they must formatted as a valid JSON string. Only strings are accepted as key. For the value, only strings, numbers and booleans are accepted. Use a timestamp to represent a date.

If you want to track a specific event you can add to your code:custom event use the trackEvent method. Events types below 1000 are reserved for the library internal usage. You can use custom event types starting from 1001.

Code Block
var eventParams = {
    "string-type-field": "value",
    "bool-type-field": true,
    "number-type-field": 7201,
    "date-type-field": Math.floor(Date.now() / 1000)
BMA4S.trackEvent(10001001, JSON.stringify(eventParams));