Add custom dimension to Google Analytics Enhanced Ecommerce events

18 1 7

Shopify has a really annoying behaviour with GA Enhanced Ecommerce, where it sends the product name together with the variant title. This makes it really hard to aggregate reports by product (essentially product_id).


We would like to send a custom dimension (product_id) with the product details view event.

Google documentation is clearly instructing to add a property to the ec:addProduct call, but unfortunately Trekkie doesn't allow any way to bind into its requests.




Any idea how this could be achieved?

Thanks in advance!