Author Topic: Google analytics code  (Read 392 times)

Offline hani

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +7/-0
    • View Profile
Google analytics code
« 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

Offline jaja

  • Newbie
  • *
  • Posts: 33
  • Karma: +10/-0
    • View Profile
Re: Google analytics code
« Reply #1 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

Offline hani

  • Jr. Member
  • **
  • Posts: 62
  • Karma: +7/-0
    • View Profile
Re: Google analytics code
« Reply #2 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