Events Tracking


This JS API provides you access to custom events. Access methods on this object:


track(eventName, attributes, options)

Tracks a new event by its eventName. The event does not need to be pre-created in the Product Fruits administration. More information about custom events can be seen here.

The attributes optional parameter is reserved for future use. We already store the value, you can send an object with a key/value structure.

The options optional parameter can currently get a single option forwardToIntegrations. If you set it to true, the event will be distributed to enabled analytics integrations.