Skip to main content
Legacy events

add_to_cart

Legacy add_to_cart payload (pre-GA4 ecommerce structure).

Status: Deprecated

Replacement guidance: Use add_to_cart with ecommerce.items[].

Deprecated payload that placed currency, value, and items at the top level.

CMS sent only a single rentable type id with optional dates; PMS used prefixed item ids (A/C/P) with richer item fields.

Replaced by GA4 add_to_cart with ecommerce.items.

Sample data layer snippet

dataLayer.push({
  "event": "add_to_cart",
  "currency": "EUR",
  "value": 350,
  "items": [
    {
      "item_id": "A123",
      "item_name": "Amenity",
      "start_date": "2026-02-20",
      "end_date": "2026-02-22"
    }
  ]
});

Top-level parameters

ParameterSamplePresenceDescription
currencyEURif availableLegacy top-level currency.
value350if availableLegacy top-level value.
items[...]if availableLegacy items array (top-level). CMS only sent item_id for rentable types; PMS used A/C/P prefixes.

Still need help? Share an idea