ImPresta Posted October 23, 2009 Share Posted October 23, 2009 Does any one know how to implement a thirdparty traciking pixel, for registering sales through an affiliate network?I assume that the code should be implemented on the order-confirmation.tpl page, but where and what variables to use?Ex.: (in an IMG tag)http://www.ad-network.com/salestracking.php?type=sale&ordernumber;=[Order_id??]&porductnummer;=[Prod_nr??]&amount;=[ammount??]&totalcost;=[Price_total??]I would appreciate any help on this issue. Thanks in advance, for any contribution on this subject. Link to comment Share on other sites More sharing options...
presta-dyr Posted November 13, 2009 Share Posted November 13, 2009 I made a module to solve this. The tracking pixel is displayed when the order has been confirmed. There is a problem, however, if the payment method is e.g. cheque or bankwire. In that case your affiliate will register the order as completed even if you haven't received the payment yet. I can't see an immediate solution for this since the tracking pixel must be requested by the customer's browser. It would not work if you requested the tracking pixel later on when the payment was actually received.I have attached my module. You will have to change the tpl file and insert your img code.2011-01-26: Updated with total products w/o shipping./Kjeld affiliatetracking_0.2.zip 2 Link to comment Share on other sites More sharing options...
ImPresta Posted November 19, 2009 Author Share Posted November 19, 2009 Takker Presta-dyr,Det var lige hvad jeg manglede Jeg kan se at du også havde lavet en block til Trustpilot, men linket virker vist ikke mere. Mvh Rune Link to comment Share on other sites More sharing options...
presta-dyr Posted November 19, 2009 Share Posted November 19, 2009 I'm glad you could use it.Please continue the discussion about the TrustPilot module in the Danish forum./Kjeld Link to comment Share on other sites More sharing options...
presta-dyr Posted January 26, 2011 Share Posted January 26, 2011 Updated the module with values for total paid without shipping and total commission (hard-coded to 10 %)./Kjeld Link to comment Share on other sites More sharing options...
datdudejones Posted January 28, 2011 Share Posted January 28, 2011 I made a module to solve this. The tracking pixel is displayed when the order has been confirmed. There is a problem, however, if the payment method is e.g. cheque or bankwire. In that case your affiliate will register the order as completed even if you haven't received the payment yet. I can't see an immediate solution for this since the tracking pixel must be requested by the customer's browser. It would not work if you requested the tracking pixel later on when the payment was actually received.I have attached my module. You will have to change the tpl file and insert your img code.2011-01-26: Updated with total products w/o shipping./Kjeld So where would I put the img code ()below?:Order ID: {$orderId} Total (w/o shipping): {$total} Total paid: {$totalPaid} Total products: {$totalProducts} Total commission (10 %): {$totalCommision} Currency: {$currency} Link to comment Share on other sites More sharing options...
presta-dyr Posted January 28, 2011 Share Posted January 28, 2011 You should have a single line in the .tpl file:<img src="https://shareasale.com/sale.cfm?amount={$total}&tracking={$orderId}&transtype=TYPEOFTRANSACTION&merchantID=XXXX" width=1 height=1>You will have to insert proper values for TYPEOFTRANSACTION and XXXX./Kjeld Link to comment Share on other sites More sharing options...
sJakub Posted April 29, 2011 Share Posted April 29, 2011 Hi,this should be good extension for me but I tried install in on presta 1.4 and it doesn't work(error: file is corrupted?).. any advice please?Thanks! Link to comment Share on other sites More sharing options...
sJakub Posted April 29, 2011 Share Posted April 29, 2011 excelent, I found the way how to do it! thanks for sharing buddy! Link to comment Share on other sites More sharing options...
MarkAngelo Posted May 19, 2011 Share Posted May 19, 2011 excelent, I found the way how to do it! thanks for sharing buddy! Hi there,How did you do it? Is it compatible with the newest version of Prestashop? (v1.4)?? Please share how you made this work. Kind regards,Mark Link to comment Share on other sites More sharing options...
MarkAngelo Posted June 26, 2011 Share Posted June 26, 2011 If someone needs help implementing the shareasale tracking pixel in their shopping cart, let me know.Thanks again to Kjeld for sharing this. Link to comment Share on other sites More sharing options...
netflex Posted September 15, 2011 Share Posted September 15, 2011 I've tried a many different ways and can't seem to get the tracking to work, the tracking code i am trying to implement is this: <!-- Offer Conversion: Tracking Pixel 1 --> <iframe src="http://go2ads.com/SM28?amount=AMOUNT" scrolling="no" frameborder="0" width="1" height="1"></iframe> <!-- // End Offer Conversion --> My ad server instructions say: "Advertiser must place the iFrame conversion tracking pixel below on the confirmation page near the opening body tag. When the pixel is displayed to a user, it records a conversion." Problem is that the prestashop order-confirmation.tpl does not have any body tags.. Also, do i replace AMOUNT with {$total} - and where would i put {$orderId} ? And is it really necessary to install this plugin by presta-dyr if we can simply place the code in order-confirmation.tpl ? Thanks in advance for anyone who provide some insight into this issue for me! Link to comment Share on other sites More sharing options...
jonwade Posted September 29, 2011 Share Posted September 29, 2011 A solution to this has been posted here.. http://realonlinehelp.com/2011/09/how-to-use-shareasale-with-prestashop/ Link to comment Share on other sites More sharing options...
[PrestaModule] Steph Posted December 4, 2011 Share Posted December 4, 2011 Hi We have a new module who fits your needs : Advanced Tracking Wizard Hope it helps Link to comment Share on other sites More sharing options...
benknackan Posted January 4, 2012 Share Posted January 4, 2012 <img src="http://click.double.net/ls/?p=xxx;d=sale;k=xxxxx;v={$total};c={$orderId}" width="0" height="0"> Is this the only thing that needs to stand in the tpl? And it's correct? No need to change the php? Since I actually plan to use 20 % commison ? Link to comment Share on other sites More sharing options...
olimpiu Posted January 31, 2012 Share Posted January 31, 2012 The solution for this problem is indeed using the affliliate tracking code that is pretty smart. However it needs a little coding in order to get the values you need inside the php and tpl files. I will just place the code inside the tpl file and that's it. Also i think this can be a good way to track revenue for adwords campaigns. Olimpiu Link to comment Share on other sites More sharing options...
littlesh Posted April 17, 2012 Share Posted April 17, 2012 You should have a single line in the .tpl file: <img src="https://shareasale.com/sale.cfm?amount={$total}&tracking={$orderId}&transtype=TYPEOFTRANSACTION&merchantID=XXXX" width=1 height=1> You will have to insert proper values for TYPEOFTRANSACTION and XXXX. /Kjeld Hi! How to get total item count of the order? Is it possible? Thanks in advance for the help. Bye Link to comment Share on other sites More sharing options...
Cope Posted December 15, 2014 Share Posted December 15, 2014 Is this method still usable in PS 1.5? I end up on different URL's depending on if the user is registered or guest – and depending on payment method (I'm using QuickPay). Therefore, in my tests, the affiliatetracking.tpl is never fired (e.g. when ending up at /order-history). Any way to solve this? Link to comment Share on other sites More sharing options...
presta-dyr Posted December 16, 2014 Share Posted December 16, 2014 I believe it will work with PrestaShop 1.5 but I have not tested it. But you need an updated version of the Quickpay module. /Kjeld Link to comment Share on other sites More sharing options...
Recommended Posts