Added Google Analytics code
This commit is contained in:
parent
f2bf172997
commit
a99606ecbf
1 changed files with 8 additions and 14 deletions
|
@ -16,22 +16,16 @@
|
||||||
<script src="https://use.typekit.net/yst3vhs.js"></script>
|
<script src="https://use.typekit.net/yst3vhs.js"></script>
|
||||||
<script>try{Typekit.load({ async: true });}catch(e){}</script>
|
<script>try{Typekit.load({ async: true });}catch(e){}</script>
|
||||||
|
|
||||||
<?php if ($_SERVER['HTTP_HOST'] !== 'local.lbry.block.ng' && $_SERVER['HTTP_HOST'] !== 'explorer.lbry.io'): ?>
|
|
||||||
<!-- Analytics -->
|
<!-- Analytics -->
|
||||||
<script type="text/javascript">
|
<?php if ($_SERVER['HTTP_HOST'] === 'explorer.lbry.io'): ?>
|
||||||
var _paq = _paq || [];
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
<script async src="//www.googletagmanager.com/gtag/js?id=UA-60403362-1"></script>
|
||||||
_paq.push(['trackPageView']);
|
<script>
|
||||||
_paq.push(['enableLinkTracking']);
|
window.dataLayer = window.dataLayer || [];
|
||||||
(function() {
|
function gtag(){dataLayer.push(arguments);}
|
||||||
var u="//analytics.aureolin.co/";
|
gtag('js', new Date());
|
||||||
_paq.push(['setTrackerUrl', u+'piwik.php']);
|
gtag('config', 'UA-60403362-1');
|
||||||
_paq.push(['setSiteId', '1']);
|
|
||||||
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
|
|
||||||
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
|
|
||||||
})();
|
|
||||||
</script>
|
</script>
|
||||||
<!-- End Analytics Code -->
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
Loading…
Reference in a new issue