How to reflect addition of a new variable in an event defination in snowplow enhanced ecommerce relation

Hi,
Earlier the event eeAddtoBasket had the format-

   "event": "eeAddToBasket",
   "ecommerce": {
      "currencyCode": "EUR",
      "add": {
         "products": [
            {
               "name": "Oculus Quest VR 64GB",
               "id": "GRB111P3942",
               "brand": "oculus",
               "category": "gaming-and-vr",
               "dimension13": "virtual-reality",
               "metric1": "24.90",
               "variant": "19238",
               "price": "54.90",
               "metric2": "54.90",
               "metric3": "59.90",
               "dimension12": 1,
               "discountAmount": "5.00",
               "discountPercentage": 8,
               "dimension15": "0-10",
               "dimension17": "3-7",
               "dimension16": "de",
               "quantity": 1
            }
         ]
      }
   },
   "gtm.uniqueEventId": 40
}

and the relation atomic.com_google_analytics_enhanced_ecommerce_product_field_object_1 was getting populated fine.

But now I need the orderid asa the event is triggered so new json of the event with orderid looks like -

   "event": "eeAddToBasket",
   "ecommerce": {
      "currencyCode": "EUR",
      "orderId": "R439060528",
      "add": {
         "products": [
            {
               "name": "Oculus Quest VR 64GB",
               "id": "GRB111P3942",
               "brand": "oculus",
               "category": "gaming-and-vr",
               "dimension13": "virtual-reality",
               "metric1": "24.90",
               "variant": "19238",
               "price": "54.90",
               "metric2": "54.90",
               "metric3": "59.90",
               "dimension12": 1,
               "discountAmount": "5.00",
               "discountPercentage": 8,
               "dimension15": "0-10",
               "dimension17": "3-7",
               "dimension16": "de",
               "quantity": 1
            }
         ]
      }
   },
   "gtm.uniqueEventId": 40
} 

I need this orderId also to be populated in atomic.com_google_analytics_enhanced_ecommerce_product_field_object_1

Just adding the column won’t help, where do I need to make changed so that this orderid is also reflected?

@Manav_Veer_Gulati, when checking GA Enhanced Ecommerce I cannot see order ID in there. However, there is a transaction ID which is a part of Action Data and is reflected in com_google_analytics_enhanced_ecommerce_action_field_object_1.

Is your order ID different from the ID in the standard Enhanced Ecommerce tracking by Google Analytics? The Snowplow Enhanced Ecommerce directly corresponds to GA Enhanced Ecommerce.

1 Like

Thanks @ihor
Yes the transaction id is different from the order id.
So I found a way out, just made a new structured event to track the order id.