VictorBCOMB Posted February 25, 2016 Share Posted February 25, 2016 Whenever I put this facebook conversion code into header.tpl file and update the page, the site goes down, you would know why? <!-- Facebook Pixel Code --> <script> !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', '145193929148736'); fbq('track', 'PageView'); fbq('track', 'ViewContent'); fbq('track', 'Search'); fbq('track', 'AddToCart'); fbq('track', 'InitiateCheckout'); fbq('track', 'AddPaymentInfo'); fbq('track', 'Purchase', {value: 0,00, moeda: 'BRL'}); fbq('track', 'Lead'); fbq('track', 'CompleteRegistration'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=145193929148736&ev=PageView&noscript=1" /></noscript> <!-- End Facebook Pixel Code --> You can help me? Thanks, Victor Magalhães. Link to comment Share on other sites More sharing options...
Daresh Posted February 25, 2016 Share Posted February 25, 2016 I have a similiar code, but it's beetween tags: {literal} ... code here {/literal} Link to comment Share on other sites More sharing options...
VictorBCOMB Posted February 25, 2016 Author Share Posted February 25, 2016 I have a similiar code, but it's beetween tags: {literal} ... code here {/literal} The code must appear in the inspect element? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now