Remove unused Google Analytics and Facebook Pixel tracking scripts from layout-both-columns.tpl
This commit is contained in:
@@ -169,122 +169,9 @@
|
||||
ga('ecommerce:send');
|
||||
</script>
|
||||
{/if}
|
||||
{*<script>
|
||||
gtag('event', 'page_view', {literal}{{/literal}
|
||||
'send_to': 'AW-794356438',
|
||||
'user_id': '{$customer.id}',
|
||||
'value': '{$order.totals.total.amount|string_format:"%.2f"}',
|
||||
'items': [
|
||||
{foreach from=$order.products item=product name="product"}
|
||||
{literal}{{/literal}
|
||||
'id': '{$product.reference}',
|
||||
'google_business_vertical': 'retail'
|
||||
{if $smarty.foreach.product.last} {literal}}{/literal}
|
||||
{else}{literal}},{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
]{literal}}{/literal});
|
||||
</script>*}
|
||||
|
||||
|
||||
{if $page.page_name == 'product'}
|
||||
<script>
|
||||
gtag('event', 'view_item', {literal}{{/literal}
|
||||
'send_to': 'AW-794356438',
|
||||
'value': '{$product.price}',
|
||||
'items': [
|
||||
{literal}{{/literal}
|
||||
'id': '{$product.reference}',
|
||||
'google_business_vertical': 'retail'
|
||||
{literal}}{/literal}
|
||||
]{literal}}{/literal});
|
||||
</script>
|
||||
|
||||
|
||||
<script>
|
||||
fbq('track', 'ViewContent', {literal}{{/literal}
|
||||
content_ids: ['{$product.id}'],
|
||||
content_type: 'product'
|
||||
{literal}}{/literal});
|
||||
</script>
|
||||
|
||||
|
||||
{/if}
|
||||
|
||||
{if $page.page_name == 'order-confirmation'}
|
||||
<script>
|
||||
gtag('event', 'purchase', {literal}{{/literal}
|
||||
'send_to': 'AW-794356438',
|
||||
'user_id': '{$customer.id}',
|
||||
'value': '{$order.totals.total.amount|string_format:"%.2f"}',
|
||||
'items': [
|
||||
{foreach from=$order.products item=product name="product"}
|
||||
{literal}{{/literal}
|
||||
'id': '{$product.reference}',
|
||||
'google_business_vertical': 'retail'
|
||||
{if $smarty.foreach.product.last}
|
||||
{literal}}
|
||||
{/literal}
|
||||
{else}{literal}},{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
]{literal}}{/literal});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{if $page.page_name == 'product'}
|
||||
<script>
|
||||
//for product page 'add' button...
|
||||
$('#add-to-cart-button').unbind('click').click(function() {
|
||||
|
||||
gtag('event', 'add_to_cart', {literal}{{/literal}
|
||||
'send_to': 'AW-794356438',
|
||||
'value': '{$product.price}',
|
||||
'items': [
|
||||
{literal}{{/literal}
|
||||
'id': '{$product.reference}',
|
||||
'google_business_vertical': 'retail'
|
||||
{literal}}{/literal}
|
||||
]{literal}}{/literal});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name='hook_before_body_closing_tag'}
|
||||
{hook h='displayBeforeBodyClosingTag'}
|
||||
{/block}
|
||||
{*
|
||||
{if $page.page_name == 'index'}
|
||||
<script type="text/javascript" src="/themes/interblue/assets/js/jquery.jsticky.js" ></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$(".sticky").sticky({
|
||||
topSpacing: 0,
|
||||
zIndex:2,
|
||||
stopper: "#footer"
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{else}
|
||||
<script type="text/javascript" src="/themes/interblue/assets/js/jquery.jsticky.js" ></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$(".sticky").sticky({
|
||||
topSpacing: 0,
|
||||
zIndex:2,
|
||||
stopper: "#amazzing_filter"
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
*}
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user