Skip to main content

Objects Overview

Data objects are the building blocks of the DATA Reshape tracking system. These standardized structures ensure consistent tracking across all events and implementations — both web (JavaScript) and webhook (server-to-server).

Objects

Event & Context

Event Object Core structure for all tracked events. Contains event name, value, currency, unique ID, and custom properties.

Context Object - Web Browser context for web implementations. Page URL, page type, and environment. Most data is collected automatically — manual setup needed only for SPAs.

Context Object - API Server-side context for webhook implementations. Environment, data source, user agent, IP address, and URL context preserved from the original user session.

E-commerce

Product Object Product identification, pricing, inventory, categories, images, product-level coupons, and custom properties. Used in all product-related events.

Shipping Object Shipping method, cost, and tax information. Required for checkout and shipping events.

Payment Object Payment method, amount, and type. Supports split payments with multiple methods per order.

Coupon Object Discount codes and promotional offers with value, tax information, and classification. Applied at order-level or product-level.

User Object Customer identification, contact information, geographic data, order history, and custom properties. Send email and phone as plaintext only — hashing is handled automatically.

Consent Object User consent preferences for analytics, personalization, and marketing data processing.

Cookies Object Flat key-value map of browser cookies for platform attribution. Only cookies mapped by DATA Reshape are processed.

Implementation

All objects use the same structure for both web and API implementations. The only differences are in the context object (web vs API) and how data is collected (automatically via JavaScript or manually via webhooks).

Start with the required fields and add optional data progressively. The more complete the data, the better the attribution and audience matching across destinations.