change pixel facebook fr es

This commit is contained in:
Srv Bebeboutik 2016-01-11 10:10:48 +01:00
parent 883f095864
commit 8ce06e9584
2 changed files with 58 additions and 44 deletions

View File

@ -103,19 +103,35 @@
{/if} {/if}
<!-- Facebook Pixel Code --> <!-- Facebook Pixel Code -->
{literal} {if $cookie->id_lang == 2}
<script> {literal}
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? <script>
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
document,'script','//connect.facebook.net/en_US/fbevents.js'); 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', '585280634957856'); fbq('init', '585280634957856');
fbq('track', "PageView"); fbq('track', "PageView");
</script> </script>
{/literal} {/literal}
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&amp;ev=PageView&amp;noscript=1"/></noscript> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&amp;ev=PageView&amp;noscript=1"/></noscript>
{elseif $cookie->id_lang == 3}
{literal}
<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', '778018572325168');
fbq('track', "PageView");
</script>
{/literal}
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=778018572325168&amp;ev=PageView&amp;noscript=1"/></noscript>
{/if}
{literal} {literal}
<script> <script>
@ -137,15 +153,6 @@
{if $page_name == 'order-confirmation' && isset($order)} {if $page_name == 'order-confirmation' && isset($order)}
{literal} {literal}
<script> <script>
var product_ids = [];
{/literal}
{foreach from=$productIds item='product_id'}
{literal}
product_ids.push({/literal}{$product_id}{literal});
{/literal}
{/foreach}
{literal}
fbq('track', 'Purchase', { fbq('track', 'Purchase', {
value: '{/literal}{$order->total_paid}{literal}', value: '{/literal}{$order->total_paid}{literal}',
currency: "{/literal}{$currency['name']}{literal}" currency: "{/literal}{$currency['name']}{literal}"

View File

@ -110,19 +110,35 @@
{/if} {/if}
<!-- Facebook Pixel Code --> <!-- Facebook Pixel Code -->
{literal} {if $cookie->id_lang == 2}
<script> {literal}
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? <script>
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
document,'script','//connect.facebook.net/en_US/fbevents.js'); 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', '585280634957856'); fbq('init', '585280634957856');
fbq('track', "PageView"); fbq('track', "PageView");
</script> </script>
{/literal} {/literal}
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&amp;ev=PageView&amp;noscript=1"/></noscript> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&amp;ev=PageView&amp;noscript=1"/></noscript>
{elseif $cookie->id_lang == 3}
{literal}
<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', '778018572325168');
fbq('track', "PageView");
</script>
{/literal}
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=778018572325168&amp;ev=PageView&amp;noscript=1"/></noscript>
{/if}
{literal} {literal}
<script> <script>
@ -144,15 +160,6 @@
{if $page_name == 'order-confirmation'} {if $page_name == 'order-confirmation'}
{literal} {literal}
<script> <script>
var product_ids = [];
{/literal}
{foreach from=$productIds item='product_id'}
{literal}
product_ids.push({/literal}{$product_id}{literal});
{/literal}
{/foreach}
{literal}
fbq('track', 'Purchase', { fbq('track', 'Purchase', {
value: '{/literal}{$order->total_paid}{literal}', value: '{/literal}{$order->total_paid}{literal}',
currency: "{/literal}{$currency['name']}{literal}" currency: "{/literal}{$currency['name']}{literal}"