Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Google analytics outside the tag

New Front EN Support Forums Kanso Theme Support Google analytics outside the tag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9390
    arunsatori
    Member

    Hello!
    Google tag assistant is telling that the code UA-xxxxxxx is outside de head tag.
    I investigated a bit, but i don’t have the expertise to change that in the theme.
    In ‘Theme Options’ the code is in it’s right place.
    Help. Thanks.

    #9425
    mmsatori
    Keymaster

    Hey Arunsatori,

    placing the Analytics code inside the “head” tab is an official recommendation by Google, yet since it’s asynchronous, it can really be placed anywhere inside the page’s code (please see this and this source for more information and explanations). So as long as the code works and is actually recording the visits, it should be totally fine.

    Sincerely,
    Andrii / Satori Studio

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.