The page object

The page object is located within the context object. It contains information about the current page like its URL, title, the SKU of products on the page, locale information, and so on.

The following are the attributes supported in the page object:

Name

Type

Description

referrer

string

Optional.

The page referrer.

uri

string

Either uri or sku is required.

The URL of the current page.

Important

uri must correspond to a page set or single page defined in the Merchandising Control Center.

sku

array of strings

Either uri or sku is required.

Array of product SKUs that are on the current page or in the cart. For a product detail page (PDP page) sku is an array containing the single SKU representing that product.

title

string

Optional.

The title of the current page.

locale_country

string

Required if set up with locale.

Country specified as part of the locale context as per ISO 3166 Alpha 2 country code.

Example codes: us, ca.

locale_language

string

Required if set up with locale.

Language specified as part of the locale context as per ISO 639-1 standard language codes.

Example codes: en, fr.

locale_currency

string

Required if set up with locale.

A currency code used by the locale-specific site.

Example codes: eur, usd.

Do you have some feedback for us?

If you have suggestions for improving this article,