Where do i place analytics code?

Joomla webshop template with CSS3-based animations, VirtueMart support and one-page checkout.
GK User
Mon Jun 12, 2017 3:09 am
Hello,
I am not sure where to add my analytics script. Just need to know which file I need to edit to add the script please.

Thanks a bunch
User avatar
Fresh Boarder

teitbite
Fri Jun 16, 2017 9:25 am
Hi

Best place is between <head></head> and this section is handled by /layouts/blocks/head.php
User avatar
Moderator

GK User
Fri Jun 16, 2017 12:56 pm
Hey Teitbite!
Thanks for response, there was no <head> tags in the head.php file. I went ahead and added scripts to the default.php file under the layouts folder and everything seems to be working fine. Thanks!
User avatar
Fresh Boarder

teitbite
Mon Jun 19, 2017 1:28 pm
Hi

There is no <head> tags in the file because this file is a content between those tags. But sure defaut.php will work as well.
User avatar
Moderator


cron