Book Image

Piwik Web Analytics Essentials

By : Stephan A. Miller
Book Image

Piwik Web Analytics Essentials

By: Stephan A. Miller

Overview of this book

<p>Without web analytics, you are blind on the internet. In order to improve conversions and revenue on your web- site, you need to know what is going on. Piwik gives you this data and unlike Google Analytics, gives you total control over its usage. Unlike Google analytics where the data can be read by Google, Piwik maintains complete confidentiality of your website data. By harnessing the power of your tracked data, you can raise the conversion rates on your website to new heights.<br /><br />"Piwik Web Analytics Essentials" will show you how to install Piwik Open Source Analytics and have you tracking your website’s visitors within an hour after you pick up the book! After that, you will learn how to track custom events and programmatically trigger tracking events. The book continues with ecommerce tracking and advanced Piwik API usage.<br /><br />This book will take you from installing Piwik on your web server to writing custom tracking code for your apps.<br /><br />You will learn goal and event tracking techniques and how to add them to your standard tracking to fine tune your analytics results. Nothing is untrackable using Piwik: ecommerce shopping carts, web apps, phone apps, and more can make use of Piwik tracking capabilities.<br /><br />"Piwik Web Analytics Essentials" will walk you through every step with detailed screenshots and plenty of example code.</p>
Table of Contents (18 chapters)
Piwik Web Analytics Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Backing up Piwik


It is a good practice to regularly back up your Piwik installation, and you should definitely back up Piwik before you plan on doing an update. You can never be sure that everything will go as planned on your server. So, it is better to be safe than sorry. Fortunately, this is a simple process involving only two steps.

Firstly, you need to back up the config.ini.php file located in the config folder of your Piwik installation. This file contains your Super User credentials, your database connection details, and the list of plugins you have installed. All you need to do is open your FTP software, connect to the FTP server of your website, download the file, and store it in a safe place. This will ensure that you can get a new Piwik installation up and running using your old data, if anything bad should happen to your old installation.

The second thing you need to do to back up your Piwik installation is to back up the MySQL database that Piwik uses. This involves dumping the contents of the database to a SQL file. This is not as hard as it sounds either. You don't need to know any special database queries to do it. You can use the same tool, which you used to create the database, for creating backups.

In phpMyAdmin, just browse to your Piwik database, click on Export in the top menu, and when the page loads, click on the Go button.

When your browser asks you to save the SQL file, just choose a suitable location on your hard drive and wait for the download to finish. If you use cPanel, phpMyAdmin comes installed already, so you just browse to where your cPanel is located, find the Databases section, click on phpMyAdmin, and follow the instructions above. There are many other ways you can run a MySQL backup using various GUI-based MySQL tools. You can explore these other ways at http://codex.wordpress.org/Backing_Up_Your_Database. This page details how to back up a Wordpress database, but the same instructions will work for Piwik.

Once you have these two files some place safe, you have everything you need to rebuild your current Piwik installation from scratch. Now it is safe to update Piwik.