Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
            • Engage.init(settings)
            • Engage.initServer(settings)
            • Engage.initServer.handleCookie(req, res)
            • Engage.getBrowserId()
            • Engage.getGuestId()
            • Engage.updatePointOfSale(pointOfSale)
            • Engage.pageView(eventData[, extensionData])
            • Engage.identity(eventData[, extensionData])
            • Engage.event(type, eventData[, extensionData])
            • Engage.addToEventQueue(type, eventData[, extensionData])
            • Engage.processEventQueue()
            • Engage.clearEventQueue()
            • EngageServer.pageView(eventData, req[, extensionData])
            • EngageServer.identity(eventData, req[, extensionData])
            • EngageServer.event(type, eventData, req[, extensionData])
            • window.Engage.triggerExperiences()
        • Troubleshooting
        • Release notes
  1. Functions
  1. Stream API
  2. Functions
  3. Engage.updatePointOfSale(pointOfSale)

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 CDP.

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.

import { init } from "@sitecore/engage";

const loadEngage = async () => {
  const engage = await init({
      // ...
      pointOfSale: "myretailsite"
  });

  if (region === "europe") {
      engage.updatePointOfSale("myretailsite/europe");
      engage.pageView({
          // ...
      });
  };
};
If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use