Hi, thanks for reaching out. Unfortunately, it’s not possible to refer to nested attributes of a datalayer object directly. You could use a PPTM datalayer variable, but you would need to fetch the whole ecommerce
object and then iterate through on the custom HTML tag level. It would look roughly like this:
var orderDetails = {{ ecommerce object }};
var order_id = orderDetails.purchase.actionField.id
var grand_total = orderDetails.purchase.actionField.revenue
{{ ecommerce object }}
is a PPTM datalayer variable ecommerce
.
Please see this thread for complete code snippet examples for similar data layer objects.