Magento – Yahoo Analytics Conversion Code

Unlike other trcking codes, we need to put Yhoo nlytics Conversion code between

nd tgs.

Yhoo’s Instruions for the following code re:

To dd the Yhoo conversion trcking code in the Hed tgs, we need to look t the checkout lyout configurtion file:

Find out which pge lyout it uses when n order is completed.

i.e.) For one pge checkout, look for this code:

You cn edit the Hed seion of ‘2columns-right.phtml’ to dd the Yhoo trcking code. But if this templte, 2columns-right.phtml is being used for other pges, I would mke copy of it nd nme it ‘2columns-right-.phtml’ nd dd the trcking code there. This wy, it will trck it only when there is ful conversion.

By Charlie Cheng, Mrch 2, 200 @ 7:13 am

Thx for pointing right direion. But I would recomd the following code s referenced by yhoo help.

$y_order_detils = Mge::getModel(’sles/order’)->lodByIncretId($y_orderid);
$y_slemt = $y_order_detils->subtotl;

window.ysm_customDt = new Obje();
window.ysm_customDt.conversion = “trnsId=,currency=UD,mount=”;
vr ysm_ccountid = “//////YOUR TRCKING COUNT ID////////”;
// –>

By Charlie Cheng, Mrch 2, 200 @ 7:14 am

Missing prtil of code before, the first line should be:

$y_orderid = Mge::getSingleton(’checkout/session’)->getLstRelOrderId();