Adding Piwik to Xcart / Smarty Templates


I am thrilled to find Piwik as an alternative to Google. I have Piwik running on my website but having problems putting the code into Xcart’s Smarty Template. I have tried a number of places to add the code but each time it causes parsing errors. Can anyone point me in the right direction?

Thanks in advance!

Wrap it inside {literal}…{/literal}


I am not a smarty expert,

Tried the {literal} tag but it throws an error saying unexpected } on the line {literal} is on.

This was in home.php, can you give me a better idea how to insert it?


In the “catch”, change {} to { }.

Many Thanks

Problem solved


i wanted to track “total revenue” in smart template in thankyou.tpl



is this code right?