Jump to content
TNG Community

Google Analytics


Renze

Recommended Posts

I've posted the Google Analytics code in the "footer.php". But it doesn't seem to work. Did I insert the code correctly?

footer.php:

<?php global $text, $tng_version, $flags; ?>
<hr size="1" />
<?php
    $flags['basicfooter'] = true;
    echo tng_footer($flags);
?>

    <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-87715858-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-87715858-2');
</script>
<br/>

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...