Skip to main content
The page_view tracking event is used to record a page view with PureClarity and to tell PureClarity what page the user is viewing, along with context data.
Context data is important for PureClarity to be able to determine the correct zone and thus the best recommendations to show.

Properties

page_type
string
Specifies the page type so PureClarity knows which zones to loadPossible values: homepage, search_results, category_listing_page, product_listing_page, product_page, added_to_basket, basket_page, order_complete_page, my_recommendations, my_account, content_page, landing_pageExample: homepage
product_id
string
Specifies the product context of the current page. Used to load recommenders relevant to a product page. The Id should match the Id used in the product feedExample: P41923
category_id
string
Specifies the category context of the current page. Should be set on product listing pages. The Id should match the Id sent in the category feedExample: 3841
brand_id
string
Specifies the brand context of the current page. Used to set the context of a brand page. This Id should match the Id sent in the brand feedExample: 23

Examples

Homepage

{
  "page_type": "homepage"
}

Product Page

{
  "page_type": "product_page",
  "product_id": "P41923"
}

Category Listing Page

{
  "page_type": "category_listing_page",
  "category_id": "3841"
}

Brand Page

{
  "page_type": "content_page",
  "brand_id": "23"
}