Home Forums Basel support forum Google analytics code

Google analytics code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39634

    Oscar
    Participant

    Hi there where can I put google analytics code? Using wp admin theme options

    Or where can I put top of which file?
    thanx

    <!– Google Analytics –>
    <script>
    window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
    ga(‘create’, ‘UA-XXXXX-Y’, ‘auto’);
    ga(‘send’, ‘pageview’);
    </script>
    <script async src=’https://www.google-analytics.com/analytics.js’></script&gt;
    <!– End Google Analytics –>

    #39676

    Artem Temos
    Keymaster

    Hi,

    There is no place in WordPress theme to add this code. Use this plugin for such things https://wordpress.org/plugins/insert-headers-and-footers/

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)