AbanteCart Community

AbanteCart Development => Customization help => Topic started by: hani on February 28, 2018, 02:10:01 PM

Title: Google analytics code
Post by: hani on February 28, 2018, 02:10:01 PM
Hi
I have google analytics tracking code on my cart and recently i installed google tag assistant which checks the pages you surf for errors, and the result was that google assistant tags give the following error message {Code found outside of <head> tag} the code should be in the head tag otherwise the statistics will not be recorded correctly.

How can i enter the code in the <head> tag

Hani
Title: Re: Google analytics code
Post by: jaja on March 02, 2018, 12:51:15 AM
Add it to head.tpl
https:// github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default/template/common/head.tpl
Title: Re: Google analytics code
Post by: hani on March 02, 2018, 08:03:23 AM
Hi

Thanks for your reply.

I have installed abantecart version 1.2.12 and the file you sent me is an older date than this version of the cart maybe it is for older versions of abantecart.

I YES i should download the file and uploaded it instead of the one on the site??

the file is head.tpl OR header.tpl

Hani