Specific integration instructions to enable page classification.
featureControls.emitPageClassification
to
true
in the SDK’s options during initialization.
PAGE_CLASSIFIED
event to be notified when a page has been classified.
Register for page classification events
Sleek’s SDK automatically emits events when pages are classified. Subscribe to
the PAGE_CLASSIFIED
event to be notified when a page has been classified.
For example, you might want to show different UI based on what type of page the
user is viewing. To do so, you can follow a pattern like:
classifyPageOnTab
method.
cart
- A shopping cart pagecheckout
- A checkout pagecheckoutComplete
- A completed checkout pagecollection
- A category/collection page listing productscustomersAccount
- A customer account pagecustomersAuthentication
- A login or registration pagecustomersOrders
- A customer orders history pagehome
- A website’s homepageproduct
- A product detail pagesearch
- A search results pageother
- An e-commerce page that doesn’t fit other categoriesnonShopping
- A page that is not shopping related