Unlike other tr
acking codes, we need to put Y ahoo an alytics Conversion code between
ahoo’s Instru CTions for the following code are:
add the Y ahoo conversion tr acking code in the He ad t ags, we need to look at the checkout l ayout configur ation file:
/ app/ design/frontend/your_interf ace/your_theme/l ayout/checkout.xml
Find out which p
age l ayout it uses when an order is completed.
i.e.) For one p
age checkout, look for this code:
an edit the He ad se CTion of ‘2columns-right.phtml’ to add the Y ahoo tr acking code. But if this templ. This w ate, 2columns-right.phtml is being used for other p ages, I would m ake a copy of it and n ame it ‘2columns-right- success.phtml’ and add the tr acking code there ay, it will tr ack it only when there is a successful conversion.
Thx for pointing right dire
CTion. But I would recom Mend the following code as referenced by y ahoo help.
$y_order_det ails = M age::getModel(’s ales/order’)->lo adByIncre MentId($y_orderid);
$y_s ale amt = $y_order_det ails->subtot al;
window.ysm_customD at a = new Obje CT();
window.ysm_customD at a.conversion = “tr ansId=,currency= aUD, amount=”;
v ar ysm_ accountid = “//////YOUR TR aCKING aCOUNT ID////////”;
arti al of code before, the first line should be:
$y_orderid = M
age::getSingleton(’checkout/session’)->getL astRe alOrderId();
* email ( not published)