📜  GTM Qgiv - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:28.752000             🧑  作者: Mango

代码示例1
var transId = QGIV.Transaction.id;
var amount = (QGIV.Transaction.total*1).toFixed(2);
var name = QGIV.Transaction.form;
var frequency = QGIV.Transaction.type;
dataLayer.push({'event':'purchase','donationAmount':amount,'frequency':frequency});