WebCEO wrote:
Painterman,
Here's the HitLens setup instructions from WebCEO Support for a site created with Joomla 1.5.2.
1. Find the {joomla} folder - let it be the directory where the cms is stored (the path to the root directory of your website).
2. Find the head.php file located in {joomla}/libraries/joomla/document/html/renderer folder.
3. Open the head.php in some text editor and find the following code:
----------------------------------------------------------------------------------------------
$strHtml .= $tab.'<meta name="description" content="'.$document->getDescription().'" />'.$lnEnd;
$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;
$strHtml .= $tab.'<title>'.htmlspecialchars($document->getTitle()).'</title>'.$lnEnd;
----------------------------------------------------------------------------------------------
Insert the following code right after these lines:
----------------------------------------------------------------------------------------------
$strHtml .= $tab.'<script language="JavaScript" type="text/javascript">var wceoTitle="'.htmlspecialchars($document->getTitle()).'"</script>'.$lnEnd;
----------------------------------------------------------------------------------------------
4. Save the changes.
5. Insert the tracking code to each of the template files.
- go to {joomla}/templates/{template name}/
*{template name} - you should see the name of your current template folder instead of this
- open index.php
- insert HitLens tracking code right before the closing body tag
Like this:
<script language="javascript"><!--
// hitlens v1.2.5
function hitlens_embedded() {
var id = {site id};
var pc = 0;
var PAGENAME = escape(wceoTitle);
var CONTENTGROUP = escape('');
var TRANSACTION = escape('');
var TRANSACTION_ID = 0;
var ORDER = escape('');
return "id="+id+"&pc="+pc+"&p="+PAGENAME+"&gr="+CONTENTGROUP+"&tr="+TRANSACTION+"&trid="+TRANSACTION_ID+"&ord="+ORDER;
}
//--></script>
<script language="javascript" src="/webceo.js"></script>
</body>
</html>
6. Specify your website id in the var id = {site id}; line. You can find your website ID in Web CEO Project Manager.
7. Upload the external webceo.js script (it can be found here
http://www.webceo.com/webceo.js) to the root directory - {joomla}/ .
If you could please specify the email from which you wrote to WebCEO Support, we would check if your message was received and replied to (we usually reply to ALL support requests).
Regards,
Lana Zaitseff
WebCEO
lana@webceo.comHi Lana,
I have made the changes to the head.php file as instructed above by yourself, no problems.
However, I cannot find thefollowing:
Quote:
- go to {joomla}/templates/{template name}/
*{template name} - you should see the name of your current template folder instead of this
- open index.php
- insert HitLens tracking code right before the closing body tag
The index.php file shows no mention of the closing body tag.
The file is index.php, the full path is: joomla/templates/ja_purity_ii/index.php
The only code in that file is commented below, there is no mention of html tags at all.
//Calculate the width of template
//Main navigation
//End for main navigation
I think my index.php file is not the same as you refer to, I use the T3 framework for the purity_ii template.
Can you please be kind enough to take another quick look for me, thanks.
Quote:
- go to {joomla}/templates/{template name}/
*{template name} - you should see the name of your current template folder instead of this
- open index.php
- insert HitLens tracking code right before the closing body tag
Lana, I think I may have found the file I need it is:
joomla/templates/ja_purity_ii/layouts/default.php
I have added the second lot of code you gave above just before the body end tag.
NO this doesn't work....
John.