0

问题在于 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>');

4

2 回答 2

0

Actinic 版本 7 仍然使用旧的变量使用方式,因此您需要使用 NETQUOTEVAR:THEORDERNUMBER 和 NETQUOTEVAR:ACTINICORDERTOTAL。

如果您使用它,则需要将 NETQUOTEVAR:ACTINICORDERTOTAL 除以 100:

var realPrice = NETQUOTEVAR:ACTINICORDERTOTAL / 100;

var wgOrderReference = "NETQUOTEVAR:THEORDERNUMBER";
var wgOrderValue = String(realPrice);

这在您可以在订单参考中添加但不能添加到总数中的无脚本版本中不起作用。

于 2012-07-18T19:22:07.560 回答
0

no Script 标签也需要使用这些变量进行更新:)

<noscript>
<img src="http://track.webgains.com/transaction.html?wgver=1.2&wgprogramid=6455&wgrs=1&wgvalue=NETQUOTEVAR:NUMERICORDERTOTALCGI&wgeventid=10363&wgorderreference=NETQUOTEVAR:THEORDERNUMBER&wgitems=&wgvouchercode=&wgcustomerid=&wgCurrency=GBP" alt="" />
</noscript>
于 2012-07-30T14:05:40.367 回答