stampy Posted September 4, 2008 Share Posted September 4, 2008 HiI 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 More sharing options...
Trislo Posted June 6, 2013 Share Posted June 6, 2013 Did you ever find a solution? I am looking to implement click tale too and don't know where to insert the code. Link to comment Share on other sites More sharing options...
vekia Posted June 6, 2013 Share Posted June 6, 2013 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. 1 Link to comment Share on other sites More sharing options...
Hadiqa Posted May 31, 2014 Share Posted May 31, 2014 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:'? 'https://cdnssl.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js': 'http://cdn.clicktale.net/www07/ptc/d2c72182-0889-4481-9b76-c140dfc0ee8e.js'); document.body.appendChild(scriptElement); })(); </script> <!-- ClickTale end of Bottom part (XHTML) --> my website is this http://www.pakistanidressesshop.com/ Link to comment Share on other sites More sharing options...
Recommended Posts