• My analytics is loading just before the closing tag of </head>. I want to prioritize it and load it near of right after the <head> tag.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s not possible by default. It would be either the header or the footer of website. If you have a custom hook in your theme, able to do that, you can unhook the tracking code and hook it back to your custom hook using the functions.php.

    Thread Starter Tahir Siddiqui

    (@webtify)

    I was saying this because the google analytics code was loading after my CSS, java scripts, and images.

    I wanted to load it earlier so that it shows more accurate data and Google also suggests the same.

    As stated by Google:

    Paste the following snippet right after the <head> tag on each page of your site.

    SOURCE

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load the Analytics code right after or near Head tag’ is closed to new replies.