Magento – Google Analytics – Search Console Verification Problem

google analytics

I'm trying to add google analytics for my client. I've added the UA-# to Stores > Configuration > Sales > Google API. I see that it's been added but I need to confirm with Google Search Console. They state:
"The Google Analytics tracking code on your site is in the wrong location. You can verify site ownership with the asynchronous snippet placed in the section of your home page."
All I'm finding is information that seems to be outdated on how to add the actual Google code to the website. I can't find where to add the code to the HEAD HTML. Please help.

Best Answer

go to System->configuration->Design tab

insert your meta and script tag in Miscellaneous Scripts.

This will be included before head closing tag in page HTML.

Related Topic