Uncanny Posted April 13, 2014 Share Posted April 13, 2014 Hi, please instructions. Should serve for the conversion orders. <!-- Facebook Conversion Code for sn-order --> <script type="text/javascript"> var fb_param = {}; fb_param.pixel_id = 'xxxxxxxxxxxxx'; fb_param.value = '0.00'; fb_param.currency = 'CZK'; (function(){ var fpw = document.createElement('script'); fpw.async = true; fpw.src = '//connect.facebook.net/en_US/fp.js'; var ref = document.getElementsByTagName('script')[0]; ref.parentNode.insertBefore(fpw, ref); })(); </script> <noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=xxxxxxxxxxxxx&value=0¤cy=CZK" /></noscript> Link to comment Share on other sites More sharing options...
vekia Posted April 13, 2014 Share Posted April 13, 2014 i wrote guide about fb conversion pixel - you can read here how to add it with html box pro module, it will replace dynamic variables like value of order or currency Link to comment Share on other sites More sharing options...
Uncanny Posted April 13, 2014 Author Share Posted April 13, 2014 it's your second topic about that? i see it somewhere before here on board No, it's first topic. I'm looking for someone who would be able to do a tutorial for this. I've read the instructions about integration of affilate pixel, but it doesn't work and it doesn't relate with facebook tracking pixel, I think. I'm looking for tutorial step to step, does anyone has an experience with that, please? Link to comment Share on other sites More sharing options...
vekia Posted April 14, 2014 Share Posted April 14, 2014 im able to reate tutorial for this, let me know where i can read about this code - then i will help. or explain what you have to insert here: fb_param.pixel_id = 'xxxxxxxxxxxxx';fb_param.value = '0.00';fb_param.currency = 'CZK'; what is : pixel_id ? param.value - it's a cart value, but with tax? or without? with delivery? or without? currency - it's obvoius that it's a currency code so in this case i don't need explanation Link to comment Share on other sites More sharing options...
Uncanny Posted April 14, 2014 Author Share Posted April 14, 2014 First, it is necessary to clarify what I need to do to insert code. (I'm sorry for my English) The code from facebook to put themes/mytheme/order-confirmation.tpl about: {$HOOK_ORDER_CONFIRMATION}{$HOOK_PAYMENT_RETURN} We will not change the code! My problem was that the code did not send. It is a fact that after completion of the order, was redirected to history of orders. Order-confirmation.tpl was not seen. I solved it as follows: In cashondeliverywithfee/validation.php change code on: Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.intval($cart->id).'&id_module='.intval($cashOnDelivery->id).'&id_order='.intval($cashOnDelivery->currentOrder)); In cashonpickup/validation.php change code on: Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)($cart->id).'&id_module='.(int)($cashOnPickup->id).'&id_order='.(int)($cashOnPickup->currentOrder)); In bankwire is it OK. The code is now posted and we can begin to address the detail of the code! fb_param.pixel_id = 'xxxxxxxxxxxxx'; This is number tracking pixel (token?). Each tracking pixel has a different number. (https://www.facebook.com/ads/manage/convtrack)fb_param.value = '0.00'; I think that it determines from what values will be pixel sent. I don't know if it shows how much the order stands. Facebook says that may change according to their own values (https://www.facebook.com/help/435189689870514/) Link to comment Share on other sites More sharing options...
vekia Posted April 14, 2014 Share Posted April 14, 2014 well, for me everything is clear how to create it, but i still wondering about order value, it must be with or without tax? with or without delivery cost? i need only this information, then i will create tutorial Link to comment Share on other sites More sharing options...
Uncanny Posted April 14, 2014 Author Share Posted April 14, 2014 well, for me everything is clear how to create it, but i still wondering about order value, it must be with or without tax? with or without delivery cost? i need only this information, then i will create tutorial It would be best if the price is with tax and with delivery. This is the total cost of the order. Because everyone has set a different amount for transport. (Specifically, I do not use sales tax. I'm not a VAT payer.) Link to comment Share on other sites More sharing options...
vekia Posted April 15, 2014 Share Posted April 15, 2014 ok im reading the guide on facebook, one question When you create a conversion pixel, you should assign it the category that best describes the type of conversion you're tracking (checkouts, registrations, leads, key page view, adds to cart, or other website conversions) because we'll report the conversion events in your ads manager using those categories. I noticed that there are various tracking pixels, in what kind of conversion you're interested? add to cart? i bet on "order", right? Link to comment Share on other sites More sharing options...
Uncanny Posted April 15, 2014 Author Share Posted April 15, 2014 ok im reading the guide on facebook, one question I noticed that there are various tracking pixels, in what kind of conversion you're interested? add to cart? i bet on "order", right? Yes, the first one. Checkouts. Link to comment Share on other sites More sharing options...
Penuel Posted April 25, 2014 Share Posted April 25, 2014 If you are just interested in getting the conversion pixel setup on the order confirmation page instead of doing the complex programming of it, then there is already a PrestaShop addon which you may like to use: http://addons.prestashop.com/en/analytics-stats-prestashop-modules/8511-facebook-order-conversion-tracking-code-manager.html Just wanted to bring it to your notice. Thanks Link to comment Share on other sites More sharing options...
BugsyMcgraw Posted September 10, 2014 Share Posted September 10, 2014 Hi everyone, I created custom audience on facebook and need to place the pixel on my website. How do I do this?. I am using prestashop 1.5.4. Anyone got an idea how? many thanks Link to comment Share on other sites More sharing options...
Recommended Posts