Welcome

These instructions will help you install Piwik in under five minutes. Piwik is incredibly powerful and yet amazingly simple to install!


Get the Latest Version

First, we need to download the latest version of Piwik from the website. This can be found at http://piwik.org/last.zip. Once the files are unzipped, just put them on your server and be sure the files will be available via http://yourdomain.com/piwik. This can also be done from the command line by executing the following commands in your piwik root folder:

wget http://piwik.org/last.zip
unzip last.zip
rm last.zip


Start the Installation

Then, navigate to http://yourdomain.com/piwik from a web browser. You will be greeted with a welcome message.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik1.png

You may need to chown the piwik folder to the webserver so the files can be accessed.


Validate Server Requirements

Next, Piwik validates the system to ensure the server has the requirements needed to use Piwik.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik2.png


Set up SQL Database

Next, Piwik asks for the information for a valid SQL database. If you are unsure of these values, ask your host for information regarding your MySQL database. Once the fields are filled in, Piwik will create all the necessary tables in your database.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik3.png


Create Super-User Account

Now Piwik asks for the super-user's name and password. It is important you do not forget this information as it is the only way to log onto Piwik for the first time.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik4.png


Provide Site Name

Piwik asks for the name and information of the site it will be watching.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik5.png


Insert Javascript Tracking Code

Now we are given a Javascript code. This needs to appear on every page we want Piwik to track. For a CMS such as Wordpress or Drupal, we can simply put this code in the footer.php file. This information could also be put this in header.php or sidebar.php if that works better.

http://www.pasunclou.com/wp-content/uploads/2008/08/piwik6.png


Finished[[BR]]

That's it! Now we just need to wait for the site's first visitor!