• en
  • fi
  • sv
  • fr
  • nl
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:tag_prestashop [2011/12/19 14:59]
benoit created
en:tag_prestashop [2012/02/29 10:58] (current)
enberg
Line 4: Line 4:
  
 You need to open the template file on your site and install the tag in the footer file, meaning the bottom of your pages. You need to open the template file on your site and install the tag in the footer file, meaning the bottom of your pages.
 +
 +Prestashop uses a templating language called Smarty which means that you have to modify the netmonitor tag a little bit so it shows correctly. The problem is that Smarty uses curly brackets({}) for variables and thus you have to escape them with {ldelim} for { and {rdelim} for }. For your convenience here is a Smarty escaped version of the tag, just remember copy in your site id!
 +
 +
 +<code javascript>
 +<script type="text/javascript" src="http://tracker5.netmonitor.fi/nmtracker.js"></script>
 +<script type="text/javascript">
 + try {ldelim}
 + var netmonitor = new nmTracker(YOUR-SITE-ID-HERE);
 + netmonitor.track({ldelim}
 + // custom options go here
 + {rdelim});
 + {rdelim} catch(error){ldelim}{rdelim}
 +</script>
 +</code>
  
 The template file can be found this way: The template file can be found this way:
Line 11: Line 26:
   - Find your templates folder   - Find your templates folder
   - Open the file named "footer.tpl"   - Open the file named "footer.tpl"
-  - Paste the tag Netmonitor, just before the end of the body balise </BODY>+  - Paste the tag Netmonitor, just before the end of the body tag </BODY>
   - Save   - Save
  
 
en/tag_prestashop.txt · Last modified: 2012/02/29 10:58 by enberg