Jump to content

neelsvan

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Location
    South Africa
  • Activity
    User/Merchant

neelsvan's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Hi and thanks a lot for offering advice. I place the main FB pixel in the header.tpl file just above the </head> tag. And I use the {literal} tags as well. Otherwise it doesn't work... Something like this... <!-- Facebook Pixel Code xxxxxxxxxxx--> <script> {literal} !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','//connect.facebook.net/en_US/fbevents.js'); fbq('init', 'xxxxxxxxxxxxx'); fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1489521851260392&ev=PageView&noscript=1" />{/literal}</noscript> <!-- End Facebook Pixel Code --> </head> <body{if isset($page_name)............... and the rest follows This is the header part which registers "PageView" events for the whole site. In other words every page on your site. Then I place the other event specific snippets in the relevant pages for the events you want to track. For conversion the snippet: <script>{literal} fbq('track', 'Purchase', {value: '5.55', currency: 'USD'}); {/literal}</script> on the order-confirmation.tpl file. And the "View"Content" snippet on the produc.tpl file. This event tracks product page views only. I test them all with the FB Pixel Helper extension on Chrome. This shows that it works. Like this for the AddToCart pixel. http://screencast.com/t/04B4NfuuU2 -------> Except the Checkout pixel never fires when I do a PayPal Europe checkout. It fires when you use other modules like Check payments, etc. And the reason is that the order-confirmation page is not called in my setup. I tried all the different options like express checkout, 5 step v. one page checkout. etc... I received confirmation from other people that their PayPal Europe module calls the order-confirmation page at completion of payment. But in my setup it never reaches the order-confirmation page. Here is my proof: http://screencast.com/t/d8hIUDOqZ4SV So my conclusion is that the pixel placement as explained by all above works provided the page you place it on is called by the event you want to track. I hope this can save some people some time.
  2. @vekia thanks so much for your valuable input on this forum. I installed the FB pixels on my shop using the recommendations above and all of them work .... except the checkout pixel. I installed the base pixel in my header.tpl file and the Checkout pixel on the order-confirmation.tpl file as suggested Here's the checkout code I installed right below the line : <h1 class="page-heading">{l s='Order confirmation'}</h1> <script>{literal} fbq('track', 'Purchase', {value: '5.55', currency: 'USD'}); {/literal}</script> The FB pixel helper extension for Chrome shows the basic pixel (from the header fire) but not the checkout pixel. I also tested many times with a test transaction and the checkout pixel does not fire. I tried putting in different locations of the same file (order-confirmation.tpl) with no luck. I use Prestashop 1.6. UPDATE:- I since reaised that the main problem is that the standard PayPal module does not call order-confirmation.tpl and so the script is not fired. The US Paypal module and Check Payment does call this order-confirmation.tpl and the code fires. The paypal module ends up in the following page after confirmed purchase (instead of order-confirmation): .../module/paypal/submit?key=ac8e38eacbde2b3f4d415e0ac5ab3d32&id_module=82&id_cart=21&id_order=15 Any idea how to find this file above. I cant seem to find it as a .tpl fire anywhere... Thanks a lot Neels
×
×
  • Create New...