Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Anybody Used Crazyegg.com? Rate Topic   - - - - -

 
  • fishtail
  • Member
  • Members
  • Join Date: 11-Jan 10
  • 123 posts

Posted 26 February 2014 - 12:47 AM #1

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

Where the ****** is just my blanked out server name.

I used the my changes add-on and put the code in "footer.override.tpl", from what you can probably see above.

Here's the javascript code used:


<script type="text/javascript">
setTimeout(function(){var a=document.createElement("script");
var b=document.getElementsByTagName("script")[0];
a.src=document.location.protocol+"//dnn506yrbagrg.cloudfront.net/pages/scripts/2121/5555.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,<img src='http://forum.cs-cart.com/public/style_emoticons/<#EMO_DIR#>/cool.png' class='bbc_emoticon' alt='B)' />}, 1);
</script>

I know nothing about javascript, so I have no idea if the script is wrong.

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.

 
  • NaMo
  • Senior Member
  • Members
  • Join Date: 26-Jan 14
  • 199 posts

Posted 04 March 2014 - 05:17 AM #2

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

 
  • Tim Hensel
  • Junior Member
  • Members
  • Join Date: 01-Mar 11
  • 237 posts

Posted 04 March 2014 - 05:43 AM #3

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


Hi Namo,
Do you like crazyegg over google analytics, or do you use both?
- CS-Cart 2.2.5 Pro Store -

 
  • NaMo
  • Senior Member
  • Members
  • Join Date: 26-Jan 14
  • 199 posts

Posted 04 March 2014 - 08:03 AM #4

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

 
  • fishtail
  • Member
  • Members
  • Join Date: 11-Jan 10
  • 123 posts

Posted 11 March 2014 - 12:43 AM #5

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



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.

 
  • NaMo
  • Senior Member
  • Members
  • Join Date: 26-Jan 14
  • 199 posts

Posted 21 March 2014 - 10:00 AM #6

So you got it working?