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);
});