From 0cb5363d4b4a63ed99a2b2381ecfd4e1ac7f878f Mon Sep 17 00:00:00 2001 From: spiderr Date: Mon, 11 Jun 2018 21:52:39 -0400 Subject: migrate to gtag tracking --- templates/html_head_inc.tpl | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/templates/html_head_inc.tpl b/templates/html_head_inc.tpl index 0fcbc8e..bbbc6d9 100644 --- a/templates/html_head_inc.tpl +++ b/templates/html_head_inc.tpl @@ -1,24 +1,30 @@ {strip} {* Google analytics setup *} -{if $gBitSystem->isLive() && !$gBitUser->hasPermission( 'p_users_admin' )} +{if $gBitSystem->isTracking()} + {* **** GOOGLE ANALYTICS **** *} {if $gBitSystem->getConfig('google_analytics_ua')} -{literal} + -{/literal} + +{**} + {/if} {* **** BOOSTSUITE **** *} {*if $gBitSystem->getConfig('boostsuite_site_id')} @@ -37,6 +43,5 @@ var _bsc = _bsc || {"suffix":""}; {/if*} - {/if} {/if} {/strip} -- cgit v1.3