change pixel facebook fr es
This commit is contained in:
parent
883f095864
commit
8ce06e9584
@ -103,19 +103,35 @@
|
||||
{/if}
|
||||
|
||||
<!-- Facebook Pixel Code -->
|
||||
{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');
|
||||
{if $cookie->id_lang == 2}
|
||||
{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', '585280634957856');
|
||||
fbq('track', "PageView");
|
||||
</script>
|
||||
{/literal}
|
||||
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&ev=PageView&noscript=1"/></noscript>
|
||||
fbq('init', '585280634957856');
|
||||
fbq('track', "PageView");
|
||||
</script>
|
||||
{/literal}
|
||||
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&ev=PageView&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&ev=PageView&noscript=1"/></noscript>
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
@ -137,15 +153,6 @@
|
||||
{if $page_name == 'order-confirmation' && isset($order)}
|
||||
{literal}
|
||||
<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', {
|
||||
value: '{/literal}{$order->total_paid}{literal}',
|
||||
currency: "{/literal}{$currency['name']}{literal}"
|
||||
|
@ -110,19 +110,35 @@
|
||||
{/if}
|
||||
|
||||
<!-- Facebook Pixel Code -->
|
||||
{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');
|
||||
{if $cookie->id_lang == 2}
|
||||
{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', '585280634957856');
|
||||
fbq('track', "PageView");
|
||||
</script>
|
||||
{/literal}
|
||||
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&ev=PageView&noscript=1"/></noscript>
|
||||
fbq('init', '585280634957856');
|
||||
fbq('track', "PageView");
|
||||
</script>
|
||||
{/literal}
|
||||
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=585280634957856&ev=PageView&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&ev=PageView&noscript=1"/></noscript>
|
||||
{/if}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
@ -144,15 +160,6 @@
|
||||
{if $page_name == 'order-confirmation'}
|
||||
{literal}
|
||||
<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', {
|
||||
value: '{/literal}{$order->total_paid}{literal}',
|
||||
currency: "{/literal}{$currency['name']}{literal}"
|
||||
|
Loading…
Reference in New Issue
Block a user