I recently added a new SEO client that is using Prestashop to sell their products.  After spending a little time with the system, I’m not terribly impressed.  It seems a bit bloated and somewhat locked down.  If you want to add certain things to your site, they expect you to purchase the module, and sometimes the modules aren’t very self explanatory.  I’m sure that just buying a quick-n-dirty module works for some people, but after spending a little time looking around, I figured out how to display the CrazyEgg tracking text in the footer without buying the $45 module they’re trying to sell you.
First, copy your code from CrazyEgg’s page. Â To find the tracking code, click on your snapshot and look for the link to instructions.
Next, click on ‘I can add JavaScript to my pages’ link.
Now you should be able to copy your tracking code (Select All, CTRL-C)
Updating Your Footer with the CE Tracking Code
Using your favorite FTP client, navigate to the following file:
/themes/(yourtheme)/footer.tpl
Now, just pasting your code in there will cause an error. Â The fix, however, is very easy. Â Simply surround your javascript from CrazyEgg with {literal} and {/literal}
So at the end of your footer.tpl file, it should look something like this:
...
{/if}
{literal}
<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/0008/xxxx.js?"+Math.floor(new Date().getTime()/3600000);
a.async=true;a.type="text/javascript";b.parentNode.insertBefore(a,b)}, 1);
</script>
{/literal}
</body>
</html>
{/literal}
Last, save your new footer.tpl and put it back in that same directory, overwriting the previous one.
Making Sure the Code Works
The easiest way to make sure everything is working right is to go back to your CrazyEgg dashboard and use the link ‘check if you have Crazy Egg installed correctly‘
Chances are, it will be working!
I’d also recommend going to your website and just making sure the page still loads.
Doesn’t work in that way, cause an error