Snowplow not tracking "add to basket" events

Hi Aymeric,

Looks like you’re pushing a product detail view and add to cart event in the one push. Here’s what Google recommends pushing:

// Measure adding a product to a shopping cart by using an 'add' actionFieldObject
// and a list of productFieldObjects.
  'event': 'addToCart',
  'ecommerce': {
    'currencyCode': 'EUR',
    'add': {                                // 'add' actionFieldObject measures.
      'products': [{                        //  adding a product to a shopping cart.
        'name': 'Triblend Android T-Shirt',
        'id': '12345',
        'price': '15.25',
        'brand': 'Google',
        'category': 'Apparel',
        'variant': 'Gray',
        'quantity': 1


Try pushing each event separately and see if that works.

Edit: Also if you’re pushing the dataLayer[n].ecommerce object as a data layer variable in GTM. Try setting it to version 1. That will ensure the variable is treated as a full object and ignore values pushed in previous events for detail, impression etc.

1 Like