Google analytics v adminu (samo na www.1ka.si)
This commit is contained in:
parent
b59759e733
commit
166fd66013
@ -74,6 +74,13 @@
|
||||
/**************** HEAD ****************/
|
||||
echo '<head>';
|
||||
|
||||
// Google analytics
|
||||
if($site_domain == 'www.1ka.si'){
|
||||
echo "<!-- 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-KS6CJHL');
|
||||
</script><!-- End Google Tag Manager -->";
|
||||
}
|
||||
|
||||
$sqlv = sisplet_query("SELECT value FROM misc WHERE what='version'");
|
||||
$rowv = mysqli_fetch_array($sqlv);
|
||||
|
||||
@ -183,6 +190,13 @@
|
||||
/**************** BODY ****************/
|
||||
echo '<body class="mainBody'.$cssBodyClass.'">'."\n";
|
||||
|
||||
// Google analytics
|
||||
if($site_domain == 'www.1ka.si'){
|
||||
echo '<!-- Google Tag Manager (noscript) -->
|
||||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KS6CJHL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<!-- End Google Tag Manager (noscript) -->';
|
||||
}
|
||||
|
||||
// Opozorilo za update browserja -> IE8 ali manj
|
||||
?>
|
||||
<!--[if lte IE 8]>
|
||||
@ -215,13 +229,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$result = sisplet_query ("SELECT value FROM misc WHERE what='analitics'");
|
||||
$r = mysqli_fetch_row ($result);
|
||||
if (strlen ($r[0]) > 10) {
|
||||
echo htmlspecialchars_decode ($r[0]);
|
||||
}
|
||||
|
||||
echo '</body>';
|
||||
/**************** END BODY ****************/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user