0
我沒有問題從「簡單」的數據層, 例如,創建GTM變量:如何從dataLayer數組創建GTM變量?
"transactionEntity": "ORDER",
"transactionId": "193552702",
但無法理解如何從數組取值。 基本上我需要從這些數據層表取ID值:
"transactionProducts": [
{
"id": "5",
"sku": "black-handbag",
"price": 170,
"priceexcludingtax": "0.00",
"tax": "0.00",
"taxrate": 0,
"type": "bundle",
"category": "",
"quantity": 1
},
{
"id": "3",
"sku": "red-handbag",
"price": 120,
"priceexcludingtax": "0.00",
"tax": "0.00",
"taxrate": 0,
"type": "bundle",
"category": "",
"quantity": 1
}
],
而且使用這種格式將它們傳遞給FB像素:
content_ids: ['5', '3'],
謝謝。有效! – MployBy