Introduction To Reporting
Events
This guide explains how to track shopper interactions using Fast Simon's SDK to improve analytics and search relevance.
For reporting when recommendation products are shown to users, see the Recommendations Products Shown event documentation.
Notes:
- in "SPA" (single page application) mode All reports will be sent immediately
- in "MPA" (multi page application) mode All reports will be sent in the next FastSimonSDK.initialization({...})
- you can pass a type flag in any event for a combined experience
Options
Option | Type | Description |
---|---|---|
eventName | string (required) | response will be based on this product |
data | DynamicType (required) | the payload of the event, see examples below |
type | AppType | report method (id you want to use a different method for a specific event) |
targetURL | string | for product clicked event, if you want to report only if the URL includes targetURL |
time | number (default=5000) | wait time before you report a product clicked event, this makes sure that is wasn't an accidental click |
callback | ({success: boolean}) => void | callback to handle the results |