Add Piwik Tracking code to page

I use piwik analytics to track the visitors to my website. I recently created a blog on WordPress and wanted to added the same tracking code that I use on the plain HTML webpage. How can I added the tracking script in the php in order to track my blog visitors?

thanks!

Related posts

Leave a Reply

2 comments

  1. Add the tracking code to one of your theme files, most likely footer.php.

    The easiest way to do this is to go to your admin panel and go to Appearance > Editor, and on the right side, find the entry for Footer (footer.php), and then insert the code right before the closing </body> tag. Update the file by clicking the button below the text box, and you should be good!