Web Analytics is basically measuring and collecting information about your Web Site usage that helps you understand
- user/customer behavior
- track traffic to your website
- analyze marketing campaigns and conversion rates
There are many Open source applications that give you a great view to your website usage through reports of various kinds of information about your WebSite . Here are two apps that are popular : Piwik and Open Web Analytics .
In part I of this tutorial you will learn how to set up your Piwik application . In part II of the tutorial you will learn the steps required to setup your web site to allow the Piwik application to collect the data.
How to setup Piwik application
Piwik is available on github : https://github.com/piwik/piwik . You can create a fork of the application if your have a github account or download the application in a ZIP format .
Once you have the content for Piwik application , the next step is to log in to the Azure Management Portal and create a new website with a MySQL database as shown here
- Select New –> WebSite –> Custom Create
- Enter the site name , select a region and select ” Create new MySQL database”
Using GIT , you can publish Piwik to this newly created Windows Azure website . You can refer this article on how to publish from github or local GIT repository.
Once PIWIK application content in published to your azure website , click on browse and PIWIK Web Installer will show up . Before we continue with the PIWIK installer , keep a note of the connection string for the MySQL database as this will be needed .
Now complete the steps as shown below :
Enter the database information
Enter the site admin username and password
Enter the site name , url and timezone against which you wish to collect web analytic data .
Keep a note of the script mention in the above screenshot . This script needs to embedded in every web page in order for PIWIK application to start collecting data .
That’s it , Piwik is now configured . Lets see the next steps to get you website integrated with Piwik in Part II of this tutorial .