1. Shopbox Analytics
  2. Initial Setup (Non-Shopify)

Shopbox Analytics

Initial Setup (Non-Shopify)

INFO

This section can be skipped for websites that are on the Shopify Platform.

Page Detection classes

For reporting and functionality, Shopbox needs to be able to detect certain pages. This is done by attaching certain class names to the body tag of the different page types. Below is a list of page types and the required class name to be attached to the body tag of those pages:

Page Type Class Name
Homepage sb-homepage
Collections (product grid page) sb-collection
Product details sb-product-details
Search Results sb-search-results
Cart sb-cart
Order Success/Confirmation sb-order-confirmation

Order ID Pickup

On the Order Success/Confirmation page, so as to facilitate a smooth collection of the order id, can the development team insert a hidden div like below and replace 123456 with the order id of the order

<div class="sb-order-id">123456</div>