Jump to content

Such a thing as template or a global include file? Clicktale


Recommended Posts

Hi

I need to insert some code onto my site to enable me to run Clicktale (it allows you to watch video of customers on your site to see what they do, where they go etc)


There are two bits of code, and they say to "Try to insert the script right after the <BODY> tag on your pages.
If you can't, just insert the script as far up as possible in your html. " for the top bit and "Try to insert the script right before the </BODY> tag on your pages.
If you can't, just insert the script as far down as possible in your html. " for the bottom bit.

They then say:

"Ideally, your setup will be easier if you have one file that can affect all of your pages, such as a template or a global include file."

Does anyone know which page/file I need to paste the code into?

Thanks in advance.

Link to comment
Share on other sites

  • 4 years later...

hello

 

it's a bit old topic, so, what you exactly expect?

to insert own code you can use free module like HTML BOX or content box

with this addons you can put any code you want to the most important hooks / places

 

you can also put this code manually, by editing the header.tpl file located in your theme directory.

  • Like 1
Link to comment
Share on other sites

  • 11 months later...

hello

 

it's a bit old topic, so, what you exactly expect?

to insert own code you can use free module like HTML BOX or content box

with this addons you can put any code you want to the most important hooks / places

 

you can also put this code manually, by editing the header.tpl file located in your theme directory.

 

 

I did but its not working

the test results on clicktale says CODE NOT FOUND

 

i pasted TOP code in header.tpl

and bottom code in footer.tpl

 

but of no use plz check my code

 

<!-- ClickTale Top part -->
<script type="text/javascript">
var WRInitTime=(new Date()).getTime();
</script>
<!-- ClickTale end of Top part -->
 
<!-- ClickTale Bottom part (XHTML) -->
 
<script type='text/javascript'>
<!--  The ClickTale Balkan Tracking Code may be programmatically customized using hooks:-->
 
function ClickTalePreRecordingHook() {
    ClickTaleFetchFromWithCookies.setFromCookie(/^ASPSESSIONID.*/);
    window.ClickTaleFetchFrom = ClickTaleFetchFromWithCookies.constructFetchFromUrl();
    ClickTaleEventsMask-=4; }
 
<!-- For details about ClickTale hooks, please consult the wiki page http://wiki.clicktale.com/Article/Customizing_code_version_2-->
 
<!--  Add this to "OnDomLoad" event-->
(function(){
if (typeof (ClickTaleCreateDOMElement) != "function")
{
ClickTaleCreateDOMElement = function(tagName)
{
if (document.createElementNS)
{
return document.createElementNS('http://www.w3.org/1999/xhtml' tagName);
}
return document.createElement(tagName);
}
}
 
if (typeof (ClickTaleAppendInHead) != "function")
{
ClickTaleAppendInHead = function(element)
{
var parent = document.getElementsByTagName('head').item(0) || document.documentElement;
parent.appendChild(element);
}
}
 
if (typeof (ClickTaleXHTMLCompliantScriptTagCreate) != "function")
{
ClickTaleXHTMLCompliantScriptTagCreate = function(code)
{
var script = ClickTaleCreateDOMElement('script');
script.setAttribute("type", "text/javascript");
script.text = code;
return script;
}
}
var scriptElement = ClickTaleCreateDOMElement('script');
scriptElement.type = "text/javascript";
scriptElement.src = (document.location.protocol=='https:'?
document.body.appendChild(scriptElement);
 
})();
</script>
 
<!-- ClickTale end of Bottom part (XHTML) -->
 
Link to comment
Share on other sites

×
×
  • Create New...