How to Use Piwik to Generate Website Statistics


(dogsinfo) #1

Piwik is a utility used for generating website analytics. The reports created by Piwik are similar to the ones created by Google Analytics. Piwik is available as an open source tool that you can download and host on your servers, which gives you full control over your information. This tutorial will show you how to install Piwik.
1.
1

  In this tutorial, we will generate web analytics for this website as an example: www.website.com
  We will also use the document root shown in the image:
  1. 2

    Download Piwik onto your desktop and unzip the program. Piwik can be downloaded from piwik.org/latest.zip. After downloading the file, upload the folder to your document root.

  2. 3

    Download Piwik onto your desktop and unzip the program. Piwik can be downloaded from piwik.org/latest.zip. After downloading the file, upload the folder to your document root.

  3. 4

    Open a web browser and go to www.website.com/piwik to start the Piwik installation.
    Next, open your shell. In the command line, type in and enter the commands as shown in the image

  4. 5

    After that, you will need to refresh the Piwik page on your web browser. You should now see the welcome page of the installer. Click Next to proceed.

  5. 6

    The installer will then perform a system check to make sure your computer meets all the minimum requirements. If a problem is discovered, scroll down to see the command you need to solve the problem. After entering the command to fix the problem, refresh the page. The system check should be successful this time. Click Next to continue.

  6. 7

    Now you need to enter the database settings. Enter the name of your database and create a password. Do not change the table prefix or the MySQL server (localhost).
    The installer will then create the database tables. Click Next to proceed.

  7. 8

    Now you need to enter the user name for the Piwik administrator. You will also need to provide the password and email address of that particular user. You can set Piwik to generate reports for more than one website. For now, we are going to configure Piwik for only one website. Enter the name of the website and the URL. Piwik will then display a Javascript code for that specific web site. Copy and paste this code above the “body” tab of all pages on your web site. Click Next.

  8. 9

    The installation is now complete. Click Continue to Piwik.