Skip to content

Page View

Tracks user visits across all page types using the PAGE_VIEW event.

View as Markdown llms.txt

Tracks user visits across all page types using the PAGE_VIEW event. The category field distinguishes each page type and is the only required difference between requests.

Requests:

  • Home Page — tracks visits to the home page (category: "Home Page").
  • Category Page — tracks visits to category/listing pages (category: "Category Page"). Supports passing category hierarchy via params.
  • Product Page — tracks visits to product detail pages (category: "Product Page").
  • Search Page — tracks visits to the search results page (category: "Search Page"). Passes the search query via params.squery.
  • 404 Page — tracks visits to error pages (category: "404 Page"), enabling recovery recommendations.
  • Basket Page — tracks visits to the shopping cart page (category: "Basket Page").
  • Checkout Success Page — tracks the order confirmation page (category: "Checkout Success Page"), signaling a completed conversion.
  • Other Pages — tracks custom or miscellaneous pages not covered by standard categories. Use {customPage} to set a dynamic category name.
  • Unknown Page — a fallback event for pages that cannot be categorized (category: "Unknown Page").

All requests require userId, sessionId, lang, currency, and device. Optional fields include pageUrl, referrer, recommendIds, and email.

Send this event when a user lands on the Home Page of your website. This allows Segmentify to track home page visits and personalize recommendations accordingly.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "true" to send test events (won’t affect live data). Set to "false" for production.
device string ✅ Device type of the user (e.g., DESKTOP, MOBILE, TABLET).
lang string ✅ Language code of the user’s browser/session (e.g., en, tr).
currency string ✅ Currency code used on the site (e.g., USD, EUR, TRY).
category string ✅ Page category. Fixed value: "Home Page".

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"lang": "EN",
"currency": "EUR",
"category": "Home Page"
}

Send this event when a user visits a Category Page (e.g., Men’s Shoes, Electronics). This helps Segmentify understand browsing behavior and deliver category-specific recommendations.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the current page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Category Page".
subCategory string ❌ The specific sub-category being viewed (e.g., "Sneakers"). Use {subCategory} variable.
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Category Page",
"subCategory": "Sneakers",
"email": "user@example.com"
}

Send this event when a user views a Product Detail Page (PDP). This is one of the most important events for Segmentify to build accurate recommendation models and track product interest.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the current product page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Product Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Product Page",
"email": "user@example.com"
}

Send this event when a user performs a search and lands on the Search Results Page. The search query (squery) is a key field that helps Segmentify understand user intent and improve search-based recommendations.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params.squery string ✅ The search query term entered by the user (e.g., "red sneakers").
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the search results page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Search Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {
"squery": "red sneakers"
},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Search Page",
"email": "user@example.com"
}

Send this event when a user lands on a 404 Not Found page. Tracking 404 errors helps Segmentify identify broken links and serve relevant recovery recommendations to keep users engaged.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the 404 page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "404 Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "404 Page",
"email": "user@example.com"
}

Send this event when a user visits the Shopping Cart / Basket Page. This event helps Segmentify track cart activity and trigger cart abandonment or upsell recommendation strategies.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the basket page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Basket Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Basket Page",
"email": "user@example.com"
}

Send this event when a user reaches the Order Confirmation / Checkout Success Page after completing a purchase. This event signals a successful conversion and helps Segmentify optimize post-purchase recommendation flows.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the checkout success page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Checkout Success Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Checkout Success Page",
"email": "user@example.com"
}

Send this event for any custom or miscellaneous page that doesn’t fall into a standard category (e.g., About Us, Blog, Contact). Use the {customPage} variable to dynamically pass the page name.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the current page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ The custom page name. Pass the page identifier dynamically using {customPage} (e.g., "About Us", "Blog").
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "About Us",
"email": "user@example.com"
}

Send this event when a user visits a page that cannot be categorized by your integration. This acts as a fallback event to ensure all page views are tracked, even when the page type is undetermined.


POST https://{dataCenterUrl}.segmentify.com/add/events/v1.json?apiKey={apikey}


Field Type Required Description
name string ✅ Event name. Must be PAGE_VIEW.
userId string ✅ Unique identifier for the user.
sessionId string ✅ Unique identifier for the current session.
testMode string ✅ Set to "false" for production events.
device string ✅ Device type (e.g., DESKTOP, MOBILE, TABLET).
params object ❌ Additional custom parameters. Can be left empty {}.
recommendIds array ❌ IDs of recommendations shown on this page.
pageUrl string ❌ Full URL of the current page.
referrer string ❌ URL of the referring page.
lang string ✅ Language code (e.g., en, tr).
currency string ✅ Currency code (e.g., USD, EUR, TRY).
region string ❌ Region or country code of the user.
category string ✅ Page category. Fixed value: "Unknown Page".
email string ❌ Email address of the logged-in user (if available).

Example body

{
"name": "PAGE_VIEW",
"userId": "1234567890123456789",
"sessionId": "9876543210987654321",
"testMode": "false",
"device": "PC",
"params": {},
"recommendIds": [],
"pageUrl": "",
"referrer": "",
"lang": "EN",
"currency": "EUR",
"region": "",
"category": "Unknown Page",
"email": "user@example.com"
}