Skip to main content

Page identifier

This scenario is an addition to other integration examples and explains how to use the pageIdentifier variable in the Web SDK. A page identifier is a unique name for the page where you are planning on displaying Rokt placements. This provides the opportunity to identify the page uniquely.

note

When a page identifier is included, the page URL is ignored for detection purposes.

This is useful in the cases where there is a multistep checkout flow that may have the same URL on various pages, when you want more control over what step or page someone is on within your checkout flow, or to set up different layouts of the same page, based on customer journeys.

The integration follows the same steps as in previous examples, but adds an additional pageIdentifer parameter to the initialization function.

See Rokt.init for more details on the method.

rokt.onLoaded(function (rokt) {  rokt.init({    pageIdentifier: "",  });  // Integration steps as per other examples});
Was this article helpful?