CrazyEgg.com is a really cool “sorta” analytics tool. Instead of grabbing customer info that visit your website, it tells you literally where your customers click on your webpages with “heatmaps” and also where they tend to scroll to. (Demo: www.crazyegg.com/demo)
Anyway, they use javascript code like all the other analytics services, but when I insert the code, I get an error on my website:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/*******/public_html/design/themes/basic/templates/addons/my_changes/hooks/index/footer.override.tpl" on line 29 "setTimeout(function(){var a=document.createElement("script");" unknown tag "var" <-- thrown in /home/*******/public_html/app/lib/other/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 29
```<br />
<br />
Where the ****** is just my blanked out server name.<br />
<br />
I used the my changes add-on and put the code in "footer.override.tpl", from what you can probably see above.<br />
<br />
Here's the javascript code used:<br />
<br />
<br />
```php
<br />
<script type="text/javascript"><br />
setTimeout(function(){var a=document.createElement("script");<br />
var b=document.getElementsByTagName("script")[0];<br />
a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/2121/5555.js?"+Math.floor(new Date().getTime()/3600000);<br />
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,<img src='http://forum.cs-cart.com/public/style_emoticons/default/cool.png' class='bbc_emoticon' alt='B)' />}, 1);<br />
</script>
```<br />
<br />
I know nothing about javascript, so I have no idea if the script is wrong.<br />
<br />
Unfortunately, as you already know, not many developers know about CS-Cart, so they can't or don't want to help. When contacting CrazyEgg, they just said to contact my developer. And I'm not going to pay an arm and a leg to get CS-Cart to look at this. It's not worth it.