Anybody Used Crazyegg.com?

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.

Hi,



We have used crazyegg. You can put it in the index.tpl in the template folder.



Also surround your code with {literal}…{/literal}.



Let me know how it works for you.



Regards,



NaMo

[quote name='NaMo' timestamp='1393910255' post='178670']

Hi,



We have used crazyegg. You can put it in the index.tpl in the template folder.



Also surround your code with {literal}…{/literal}.



Let me know how it works for you.



Regards,



NaMo

[/quote]



Hi Namo,

Do you like crazyegg over google analytics, or do you use both?

Hi Tim,



We use both GA and Crazyegg.



GA for measuring the site traffic and crazyegg for viewing the heatmaps and getting to know where the user clicked the most plus it helps measure user behavior as well.



I'd recommend you to give it a try.



Regards,

NaMo

[quote name='NaMo' timestamp='1393910255' post='178670']

Hi,



We have used crazyegg. You can put it in the index.tpl in the template folder.



Also surround your code with {literal}…{/literal}.



Let me know how it works for you.



Regards,



NaMo

[/quote]





Hi NaMo. Thanks so much for the reply! It had been a few days, so I gave up on the reply and forgot about it. I just tried it with the {literal} tags and there's no more error. Now I've just waiting for results to appear on my account.



I'm just hoping that because cs-cart uses “index.php?” for every page, it won't cause errors. I'll come back and give my feedback.

So you got it working?