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:
Full Session Example
Full Session Example
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:
Full VTEX Session Example
Full VTEX Session Example
For a complete reference of all VTEX orderForm fields, see the VTEX orderForm Fields documentation.
Accessing Session Data
In Custom Components
Use theuseCheckoutSession hook to access session data reactively in your components:
In GTM Custom HTML Tags
Access the global objects directly in GTM Custom HTML tags:Related
- useCheckoutSession Hook — React hook for accessing session data
- Enriching Events with GTM — Use session data in GTM tags