Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 942 Bytes

File metadata and controls

27 lines (22 loc) · 942 Bytes
layout title
docs
Page Object

The Page object describes first-party information associated with the current page.

| JSON key | Type | Description | |- | | type | String | The type of page represented. Can be any string, but landing, category, product, basket, checkout, and confirmation are recommended, as we provide some special functionality for those page types | | environment | String | A name for the environment which is serving this page, e.g. production, testing |

A Page object will look something like the below example. It is not necessary to fill any or all of the fields - however, we can only target and make recommendations on fields that you have filled out.

{% highlight javascript %} window.__pe_omnitag = { "page": { "type": "landing", "environment: "production" } // more fields }; {% endhighlight %}