Engage.updatePointOfSale(pointOfSale)
The updatePointOfSale() function updates the value of pointOfSale that you previously specified in the settings object. Then, every event that you send inside the scope of this function will automatically include the updated point of sale.
sidebar. Parameters
| Parameter | Type | Description |
|---|---|---|
pointOfSale | string | The new point of sale. You must set this value to the name of a point of sale that exists in your instance of Sitecore Personalize. |
Here's an example of a scenario where an organization uses multiple points of sale. The default point of sale is specified as "myretailsite" in the settings object. If certain conditions are met, the point of sale is updated to "myretailsite/europe". Then, a VIEW event is sent with the new point of sale.
If you have suggestions for improving this article, let us know!