cancel
Showing results for 
Search instead for 
Did you mean: 

Google state I have to insert Google Analytics coding at the top of <head> what file do I need?

Google state I have to insert Google Analytics coding at the top of <head> what file do I need?

Hi, 

 

For some reason the Ecommerce tracking on our magento site has stopped working, even though I have returned everything to previous system. 

 

Marketing expert wanted to Google Tag Manager so I installed and Ecommerce tracking stopped! 

So I uninstalled and placed back in the Google analytics tracking. 

 

Anyway, I asked Google and they requested I inserted the Google Analytics tracking at the top nearest the <head>

 

I have never been asked this and on several other sites, I do not have this!!  

anyway, what file would I need to adjust to do this? 

2 REPLIES 2

Re: Google state I have to insert Google Analytics coding at the top of <head> what file do I

You need to refer below links for your script,

https://magento.stackexchange.com/questions/106269/how-to-insert-the-script-just-after-the-start-of-...

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Google state I have to insert Google Analytics coding at the top of <head> what file do I

So literally insert the Google Script where it states 'My_script' see here: https://www.screencast.com/t/sSvxFrZH1cgQ

I have already tried Misc Scripts but Google states that does not place the script high enough