GTM - Tags - Cart Events

📘

This page describe how to setup a AddToCart tag.

The exact same process can be followed to setup the RemoveFromCart tag. The only settings that will change are

  • The Tag name
  • The Cart Tracking Type
  • The Trigger
⚠️

The Splio CDP platform only supports the standard Snowplow “Cart Tracking > Add To Cart event”. If you are already using Google Analytic, the GA “enhanced ecommerce > Add to cart” event is not supported but it is still possible to use the ecommerce variable subset from Google Analytics in the Snowplow tag definition

Steps

  1. Create a new tag with the name Splio AddToCart (or Splio RemoveFromcart)

  2. In Tag Configuration, choose Snowplow v3

    If not available, you'll need to

    • Click on the Discover more tag types in the Community Template Gallery banner at the top of the side panel. (1)
    • Select Snowplow v3 (2)
    • Click on Add To Workspace (3)
    • Confirm permissions (4)
  3. Choose Tag Type Cart Tracking and the Cart Tracking Type Add To cart (or Remove From Cart)

  4. Change the setting Retrieve Paramaters From Variable and set it to {{JS - ProducInCart}}

  5. In Tracker Initialisation section, choose the Snowplow Settings variable previously defined ({{Default SP Settings}})

  6. In the Additional Tracking Parameters section, you'll need to add {{SP Context - Identified User}} context to the Custom Context Entities

  7. Then click on Choose a trigger to make this tag fire... and choose the correct trigger depending on your e-commerce site.

    📘

    For more information/help regarding trigger setup, please refer to the dedicated page GTM - Triggers

    ❗️

    The trigger should be fired only if a consent initialization trigger has been setup and enabled with end user consent.


What’s Next