Where and how add the Google analytics code

November 08 Joomla Templates
GK User
Wed Dec 29, 2010 2:17 am
I am trying to add the google analytics script but cannot find the </head> in the index.php file. I looked at some posts and it supposed to be in in file gk_wrapper.php which you can find in template folder/layouts/blocks but I cannot find this file. Please help
User avatar
Junior Boarder

GK User
Thu Dec 30, 2010 3:57 am
Gavick............please help
User avatar
Junior Boarder

GK User
Thu Dec 30, 2010 11:34 am
<head> section you can find in index.php lines 51-57

Code: Select all
<head>
<jdoc:include type="head" />
<?php
   include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/menu.php');
   include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/gk_head.php');   
?>
</head>
User avatar
Platinum Boarder

GK User
Sat Jan 01, 2011 1:17 am
where i can write analytic code in GK World News template? in index.php itsnt any head.... Where find file, where i can put the code? please help
User avatar
Fresh Boarder

teitbite
Sun Jan 02, 2011 10:24 pm
Hi

In TWN You will find it in layout/blocks/gk_wrapper.php
User avatar
Moderator

GK User
Mon Jan 03, 2011 3:30 am
bkrztuk wrote:<head> section you can find in index.php lines 51-57

Code: Select all
<head>
<jdoc:include type="head" />
<?php
   include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/menu.php');
   include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/php/gk_head.php');   
?>
</head>


The index.php file in yourshop template shows different code. take a look at what I have between lines 51-57


$tmplWrapMin = $tmplWidth ? ($tmplWidth+1).'px' : '1003px';
$tmplWidth = $tmplWidth ? $tmplWidth.'px' : '1002px';
break;
}

$tmpl->setParam ('tmplWidth', $tmplWidth);
$tmpl->setParam ('tmplWrapMin', $tmplWrapMin);

//Main navigation
$gk_menutype = $tmpl->getMenuType();
$gkmenu = null;
User avatar
Junior Boarder

GK User
Mon Jan 03, 2011 10:31 am
Yes, but you create topic in YourFlash.com category and nowhere write that your template is yourShop :) in yourShop lines 67-70

Code: Select all
</head>

<body id="bd" class="fs<?php echo $this->getParam(GK_TOOL_FONT);?> <?php echo $this->browser();?> <?php echo 'style'.$template_style; ?>">


in file layouts/default.php
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.