Analytics
Description
This JS API provides you access to 3rd party analytics tracking. Access methods on this object:
productFruits.api.analytics
Methods
forwardEvent(callback)
The callback
will be called every time a PF event is tracked. You can use this method to implement custom analytics providers.
Example:
productFruits.api.analytics.forwardEvent((event, data) => {
// call your analytics API here, for instance:
// amplitude.track(event, data);
});
Check this article to get a list of possible events and parameters.