Skip to main content

Fynd Platform Interface (FPI)

You are reading an outdated document

Get the latest developer guides on Fynd Partners Help

Introduction

Fynd Platform Interface (FPI) is a small interface utility that allows themes or extensions to interact with the core theme engine. Below are a few modules of FPI that can be used by other resources

Event

For analytics, the core engine fires events for page views, clicks, etc. Extensions or themes can use FPI to listen to the events & process them according to their needs. Below is an example of how you can use FPI events:

FPI.event.on('product_list.view', function(eventData) {
// implement logic to send data to any analytics platform
})

View all the events that are currently supported along with the payload

Extension

State