问题在于 Actic 版本 7 中的变量。此代码适用于 Actinic 版本 10。Webgains 获取信息,但未获取订单号或订单总额。
我认为这与变量 TheOrderNumber 和 NumericOrderTotal 有关。
<!-- <webgains tracking code> -->
<script language="javascript" type="text/javascript">
var wgOrderReference = "TheOrderNumber";
var wgOrderValue = "NumericOrderTotal";
var wgEventID = 10363;
var wgComment = "";
var wgLang = "en_EN";
var wgsLang = "javascript-client";
var wgVersion = "1.2";
var wgProgramID = 6455;
var wgSubDomain = "track";
var wgCheckSum = "";
var wgItems = "";
var wgVoucherCode = "";
var wgCustomerID = "";
var wgCurrency = "GBP";
if(location.protocol.toLowerCase() == "https:") wgProtocol="https";
else wgProtocol = "http";
wgUri = wgProtocol + "://" + wgSubDomain + ".webgains.com/transaction.html" + "?wgver=" + wgVersion + "&wgprotocol=" + wgProtocol + "&wgsubdomain=" + wgSubDomain + "&wgslang=" + wgsLang + "&wglang=" + wgLang + "&wgprogramid=" + wgProgramID + "&wgeventid=" + wgEventID + "&wgvalue=" + wgOrderValue + "&wgchecksum=" + wgCheckSum + "&wgorderreference=" + wgOrderReference + "&wgcomment=" + escape(wgComment) + "&wglocation=" + escape(document.referrer) + "&wgitems=" + escape(wgItems) + "&wgcustomerid=" + escape(wgCustomerID) + "&wgvouchercode=" + escape(wgVoucherCode) + "&wgCurrency=" + escape(wgCurrency);
document.write('<sc'+'ript language="JavaScript" type="text/javascript" src="'+wgUri+'"></sc'+'ript>');