update
This commit is contained in:
@@ -86,6 +86,13 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-WLMHHK3');
|
||||
</script>
|
||||
<script>
|
||||
(function(w,d,s,l,i){w[ l ]=w[ l ]||[];w[ l ].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[ 0 ],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-KBZR63W');
|
||||
</script>
|
||||
{/literal}
|
||||
<!-- End Google Tag Manager -->
|
||||
|
||||
@@ -95,19 +102,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
|
||||
{block name='hook_extra'}{/block}
|
||||
{literal}
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WLMHHK3"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KF4K52D"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-KBZR63W');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
{/literal}
|
||||
<script type="text/javascript" src="/themes/InterBlue/assets/js/accessibility.js"></script>
|
||||
<link rel="stylesheet" href="/themes/InterBlue/assets/css/accessibility.css">
|
||||
@@ -29,52 +29,47 @@
|
||||
{block name='head'}
|
||||
{include file='_partials/head.tpl'}
|
||||
{/block}
|
||||
<meta name="google-site-verification" content="K2nI0KcRd21Wzx9smvEQu_Gj56Qi-8JWAmOXn1IzNy8" />
|
||||
{literal}
|
||||
<!-- Global site tag (gtag.js) - Google Ads: 794356438 -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-794356438"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
<meta name="google-site-verification" content="K2nI0KcRd21Wzx9smvEQu_Gj56Qi-8JWAmOXn1IzNy8" />
|
||||
{literal}
|
||||
<!-- Global site tag (gtag.js) - Google Ads: 794356438 -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-794356438"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'AW-794356438');
|
||||
</script>
|
||||
{/literal}
|
||||
</head>
|
||||
gtag('config', 'AW-794356438');
|
||||
</script>
|
||||
{/literal}
|
||||
</head>
|
||||
|
||||
<body id="{$page.page_name}" class="{$page.body_classes|classnames}">
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KBZR63W"
|
||||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->
|
||||
<!-- Messenger Wtyczka czatu Code -->
|
||||
<body id="{$page.page_name}" class="{$page.body_classes|classnames}">
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KBZR63W" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WLMHHK3" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KF4K52D" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<div id="fb-root"></div>
|
||||
{literal}
|
||||
<script>
|
||||
setTimeout(function(){
|
||||
setTimeout(function() {
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
xfbml: true,
|
||||
version: 'v8.0'
|
||||
});
|
||||
FB.init({
|
||||
xfbml: true,
|
||||
version: 'v8.0'
|
||||
});
|
||||
};
|
||||
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = 'https://connect.facebook.net/pl_PL/sdk/xfbml.customerchat.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = 'https://connect.facebook.net/pl_PL/sdk/xfbml.customerchat.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
}, 4500);
|
||||
}, 4500);
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Your Wtyczka czatu code -->
|
||||
<div class="fb-customerchat" attribution="page_inbox" page_id="1962168613996327"></div>
|
||||
|
||||
|
||||
{/literal}
|
||||
<div class="fb-customerchat" attribution="page_inbox" page_id="1962168613996327"></div>
|
||||
{block name='hook_after_body_opening_tag'}
|
||||
{hook h='displayAfterBodyOpeningTag'}
|
||||
{/block}
|
||||
@@ -90,21 +85,21 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
{/block}
|
||||
</header>
|
||||
|
||||
{if $page.page_name != 'index'}
|
||||
<section id="banner-wszystkie-podstrony">
|
||||
<div class="container">
|
||||
{hook h="banner_wszystkie_podstrony"}
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
{if $page.page_name != 'index'}
|
||||
<section id="banner-wszystkie-podstrony">
|
||||
<div class="container">
|
||||
{hook h="banner_wszystkie_podstrony"}
|
||||
</div>
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
<section id="wrapper">
|
||||
{hook h="displayWrapperTop"}
|
||||
<div class="container">
|
||||
|
||||
{block name='notifications'}
|
||||
{include file='_partials/notifications.tpl'}
|
||||
{/block}
|
||||
{block name='notifications'}
|
||||
{include file='_partials/notifications.tpl'}
|
||||
{/block}
|
||||
|
||||
{block name='breadcrumb'}
|
||||
{include file='_partials/breadcrumb.tpl'}
|
||||
@@ -117,7 +112,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
{else}
|
||||
{hook h="displayLeftColumn"}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name="content_wrapper"}
|
||||
@@ -153,126 +148,115 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
|
||||
{block name='javascript_bottom'}
|
||||
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
|
||||
|
||||
{literal}
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-107985423-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
{/literal}
|
||||
{if $page.page_name == 'order-confirmation'}
|
||||
<script>
|
||||
ga('require', 'ecommerce');
|
||||
ga('ecommerce:addTransaction', {literal}{{/literal}
|
||||
'id': '{$smarty.get.id_order}',
|
||||
'affiliation': 'interBlue',
|
||||
'revenue': '{$order.totals.total.amount|string_format:"%.2f"}',
|
||||
'shipping': '{$order.details.shipping[0].shipping_cost_tax_incl|string_format:"%.2f"}'
|
||||
{literal}}{/literal});
|
||||
{foreach from=$order.products item=product}
|
||||
ga('ecommerce:addItem', {literal}{{/literal}
|
||||
'id': '{$smarty.get.id_order}',
|
||||
'name': '{$product.name}',
|
||||
'price': '{$product.total_price_tax_incl|string_format:"%.2f"}',
|
||||
'quantity': '{$product.quantity}',
|
||||
'currency': 'PLN'
|
||||
{literal}}{/literal});
|
||||
{/foreach}
|
||||
ga('ecommerce:send');
|
||||
</script>
|
||||
{/if}
|
||||
{*<script>
|
||||
{if $page.page_name == 'order-confirmation'}
|
||||
<script>
|
||||
ga('require', 'ecommerce');
|
||||
ga('ecommerce:addTransaction', {literal}{{/literal}
|
||||
'id': '{$smarty.get.id_order}',
|
||||
'affiliation': 'interBlue',
|
||||
'revenue': '{$order.totals.total.amount|string_format:"%.2f"}',
|
||||
'shipping': '{$order.details.shipping[0].shipping_cost_tax_incl|string_format:"%.2f"}'
|
||||
{literal}}{/literal});
|
||||
{foreach from=$order.products item=product}
|
||||
ga('ecommerce:addItem', {literal}{{/literal}
|
||||
'id': '{$smarty.get.id_order}',
|
||||
'name': '{$product.name}',
|
||||
'price': '{$product.total_price_tax_incl|string_format:"%.2f"}',
|
||||
'quantity': '{$product.quantity}',
|
||||
'currency': 'PLN'
|
||||
{literal}}{/literal});
|
||||
{/foreach}
|
||||
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"}',
|
||||
'user_id': '{$customer.id}',
|
||||
'value': '{$order.totals.total.amount|string_format:"%.2f"}',
|
||||
'items': [
|
||||
{foreach from=$order.products item=product name="product"}
|
||||
{foreach from=$order.products item=product name="product"}
|
||||
{literal}{{/literal}
|
||||
'id': '{$product.reference}',
|
||||
'id': '{$product.reference}',
|
||||
'google_business_vertical': 'retail'
|
||||
{if $smarty.foreach.product.last} {literal}}{/literal}
|
||||
{else}{literal}},{/literal}
|
||||
{if $smarty.foreach.product.last} {literal}}{/literal}
|
||||
{else}{literal}},{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/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>
|
||||
{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>
|
||||
<script>
|
||||
fbq('track', 'ViewContent', {literal}{{/literal}
|
||||
content_ids: ['{$product.id}'],
|
||||
content_type: 'product'
|
||||
{literal}}{/literal});
|
||||
</script>
|
||||
|
||||
|
||||
{/if}
|
||||
{/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 == '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(){
|
||||
{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});
|
||||
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}
|
||||
});
|
||||
</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">
|
||||
@@ -301,6 +285,6 @@ gtag('event', 'add_to_cart', {literal}{{/literal}
|
||||
|
||||
*}
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user