Send tracking events from headless, mobile, or hydrogen storefronts.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Shopify store URL (can be omitted if shop_domain is provided in the request body)
"shop.myshopify.com"
Event payload
Current session identifier (from HeadlessInitResponse.visit_id)
Storefront channel the event originated from
web, mobile, headless, hydrogen Anonymous visitor identifier
Client/device identifier
Shopify customer ID for authenticated visitors
Shopify store URL. Required if the x-shop header is not set.
"shop.myshopify.com"
Device information for the client
Type of the page from which the event was fired
home, product, collection, cart, checkout, order_status, search, other Full URL of the page from which the event was fired
Cart state at the time of the event
Customer information at the time of the event
Customer consent/privacy preferences
Event accepted
Indicates the event was accepted successfully
true