LOCATOR_PRODUCT_FOUND_ONLINE_BY_RETAILER

This event is supported on all of our templates.

Triggered after a search for every product that was found in at least one of the Buy Online (Find Online) retailers.

Event specific data points

retailer_idThe ID of the retailer, which links to cms.tbl_online_retailer.
retailer_nameThe name of the retailer, which should match the entry retailer_id links to. This is included so when generating reports we don’t need a CORE db connection.
allProductsSearchedtrue if all products were included in the search and false otherwise.

This event is handled in a special way. The data above is what will be stored inside the TimeStream database, but the data that is transmitted from the locator is structured differently. The locators allow for searching up to 175 products at once, and there’s the potential for all 175 products being found at 10+ retailers. This would result in needing to send over 1750 events to our API, which could cause negative side effects when scaling for thousands of locators. To counteract this problem this event is transmitted in a way so there will only be 1 event per product.

The locator will send a single event with the retailer_id and retailer_name values being excluded and in their place a single retailers value will be sent. This retailers value consists of an array of objects with each object in this array containing an id and name value. The id and name values correlates to the retailer_id and retailer_name values respectively and the API will explode out the retailers array into individual database entries.

For example, the below retailers value would appear inside a single event but would result in two database entries in TimeStream:

[{ id: 1, name: "Destini"},{ id: 2, name: "Spins"}]

This event also inherits all of the default data points.

Was this article helpful?
0 out of 0 found this helpful