diff options
Diffstat (limited to 'templates/html_head_inc.tpl')
| -rw-r--r-- | templates/html_head_inc.tpl | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/templates/html_head_inc.tpl b/templates/html_head_inc.tpl index bbbc6d9..4d60112 100644 --- a/templates/html_head_inc.tpl +++ b/templates/html_head_inc.tpl @@ -3,45 +3,22 @@ {if $gBitSystem->isTracking()} {* **** GOOGLE ANALYTICS **** *} - {if $gBitSystem->getConfig('google_analytics_ua')} -<script async src="https://www.googletagmanager.com/gtag/js?id={$gBitSystem->getConfig('google_analytics_ua')}"></script> + {if $gBitSystem->getConfig('analytics_google_ua')} +<script async src="https://www.googletagmanager.com/gtag/js?id={$gBitSystem->getConfig('analytics_google_ua')}"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){ldelim}dataLayer.push(arguments);{rdelim} gtag('js', new Date()); - gtag('config', '{$gBitSystem->getConfig('google_analytics_ua')}'); + gtag('config', '{$gBitSystem->getConfig('analytics_google_ua')}'); {if $gBitUser->isRegistered()}gtag('set', {ldelim}'user_id': '{$gBitUser->mUserId}'{rdelim});{/if} </script> - -{*<script> - {literal}(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','//www.google-analytics.com/analytics.js','ga');{/literal} - ga('create', '{$gBitSystem->getConfig('google_analytics_ua')}', 'auto'); - {if $gBitUser->isRegistered()}ga('set', 'userId', '{$gBitUser->mUserId}');{/if} - ga('require', 'displayfeatures'); - ga('require', 'linkid', 'linkid.js'); -{if $gBitSystem->isPackageActive('bitcommerce')} - ga('require', 'ec'); -{/if} - ga('send', 'pageview'); -</script>*} {/if} - {* **** BOOSTSUITE **** *} - {*if $gBitSystem->getConfig('boostsuite_site_id')} -<script type="text/javascript"> -{literal} -var _bsc = _bsc || {"suffix":""}; -(function() { - var bs = document.createElement('script'); - bs.type = 'text/javascript'; - bs.async = true; - bs.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://d2so4705rl485y.cloudfront.net/widgets/tracker/tracker.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(bs, s); -})(); -{/literal} -</script> - {/if*} + {* **** MICROSOFT ANALYTICS **** *} + {if $gBitSystem->getConfig('analytics_microsoft_ti')}{literal} +<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"{/literal}{$gBitSystem->getConfig('analytics_microsoft_ti')}{literal}"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script> +<noscript><img src="//bat.bing.com/action/0?ti={/literal}{$gBitSystem->getConfig('analytics_microsoft_ti')}{literal}&Ver=2" height="0" width="0" style="display:none; visibility: hidden;" /></noscript> + {/literal}{/if} {/if} {/strip} |
