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 |
---|---|---|
|
string |
Optional. The page referrer. |
|
string |
Either The URL of the current page. Important
|
|
array of strings |
Either Array of product SKUs that are on the current page or in the cart. For a product detail page (PDP page) |
|
string |
Optional. The title of the current page. |
|
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: |
|
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: |
|
string |
Required if set up with locale. A currency code used by the locale-specific site. Example codes: |