I was asked by a client to insert the Google Analytics code in his joomla page. No problem, I said, peace of cake.
Little did I know that it is going to be such a struggle.
First of all, I downloaded the active template and searched through code and couldn't find any HTML except about 20 index.html pages with only:
<html><body bgcolor="#FFFFFF"></body></html>.
Now I tired editing through Joomla and when the index page opens and I click edit the HTML, it's all PHP.
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once('layouts/GKTemplate.php');
$Template = new GKTemplate($this);
if($Template->settings["ie6info"] && $Template->IE6Detection())
{
$Template->loadSkeleton("ie6");
}
else
{
$Template->loadBlock("gk_wrapper");
}
I'm not too good with PHP, I'm more of a Asp.net kinda guy, so I don't understand this code, but where is the <head> tag in which I'm supposed to insert the Google Analytics code snippet?