Renze Posted February 17, 2018 Report Share Posted February 17, 2018 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/> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.