SaTracking
Measurement plansNEWIntermediate

Define a consistent ecommerce items array in the dataLayer

Implementation and QA guidance for item_id, item_name, item_brand, item_category, price and quantity.

Download for AI (.txt)

Measurement topic illustration · SaTracking

Purpose and scope

This guide explains how to implement and govern item_id, item_name, item_brand, item_category, price and quantity. Begin by identifying the business purpose, systems involved, data owner and applicable policy constraints. Separate required behavior from optional enrichment, and document the expected result before changing production configuration.

Implementation method

Create a canonical item schema; define required and optional fields; use stable product identifiers; normalize price and quantity types; test single-item and multi-item payloads; align the dataLayer contract with downstream analytics and advertising destinations. Define the expected payload contract, identify the system that owns each field and record the conditions under which data may be transmitted. Keep implementation choices consistent across environments and destinations.

Validation scenarios

Test the expected path and at least one negative path. Include missing, malformed, duplicated and delayed inputs where relevant. Inspect the actual network request or platform diagnostic rather than relying only on a successful interface preview. Compare browser and server behavior when both are involved.

Operational controls

Version the mapping and configuration; record the owner, release date and rollback procedure. Monitor rejection, duplication, latency and unexpected payload changes. Reassess the implementation when the platform specification, consent configuration, site architecture or business process changes.

Release checklist

  • Is the purpose and data owner documented?
  • Are fields minimized and correctly typed?
  • Have allowed, denied and failure cases been tested?
  • Are duplicate and retry behaviors understood?
  • Can the change be rolled back and audited?

Further reading

Official references

EDITORIAL HISTORY

What changed

  1. v1.0
    Created an original bilingual implementation guide with release and validation controls.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.