cancel
Showing results for 
Search instead for 
Did you mean: 

Add 2 Google Analytics codes to Magento from back-end?

Add 2 Google Analytics codes to Magento from back-end?

Hi, 

 

I added Google Analytics code script with 2 Google Analytics codes to Content-> Configuration -> Global -> HTML Head ->  "Scripts and Style Sheets" but GA code appear at the top of the page. But should be in the footer. 

Magento allows add only one GA code. 

I also tried to add GA code script to Content-> Configuration -> Global -> Footer -> "Miscellaneous HTML". But I got error: "Code found outside of <head> tag"

 

Is there a way how to add 2 GA codes without any coding and installing extra extensions?

 

Please advise, 

Sandra

2 REPLIES 2

Re: Add 2 Google Analytics codes to Magento from back-end?

Hi @sohopros,

 

Your second GA code is on top because you're using the HTML Head section to add the snippet. Algo, the Miscellaneous HTML adds content at the very end of body.

 

Without coding or new modules you won't be able to add the second code in the way you're looking for.

Re: Add 2 Google Analytics codes to Magento from back-end?

I add on html head GA script but I see an error: "No HTTP response detected", is it normal? thk!Smiley Happy francesco