Skip to main content
During checkout, Ollie Shop exposes session data through global objects in the browser. These objects contain all the information about the current checkout state—cart items, user data, shipping options, payment methods, and more.

Available Session Objects

Use __CHECKOUT_SESSION__ for a consistent data structure regardless of your e-commerce platform. Use __RAW_CHECKOUT_SESSION__ when you need platform-specific fields not available in the normalized version.

Ollie Shop Session Structure

The __CHECKOUT_SESSION__ object provides a clean, normalized structure:

Key Properties

Raw Platform Session (VTEX Example)

The __RAW_CHECKOUT_SESSION__ object contains the unmodified data from your e-commerce platform. This example shows the VTEX orderForm structure:
For a complete reference of all VTEX orderForm fields, see the VTEX orderForm Fields documentation.
The __RAW_CHECKOUT_SESSION__ structure varies by platform. The properties shown above are specific to VTEX. Shopify and other platforms will have different structures.

Accessing Session Data

In Custom Components

Use the useCheckoutSession hook to access session data reactively in your components:

In GTM Custom HTML Tags

Access the global objects directly in GTM Custom HTML tags: