Introduction To Reporting
Events
Use the following code to report on shopper activities. Reporting these will allow Fast Simon Dashboard Reporting and better machine-learning relevancy
Notes:
- in "SPA" (single page application) mode all report will be send immediately
- in "MPA" (multi page application) mode all the reports will be send 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 |