O'Reilly logo

Piwik Web Analytics Essentials by Stephan A. Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Tracking Visitors with Piwik

Now that we have a working Piwik installation and know how to customize our Piwik dashboard, we are going to go a little deeper into how our visitors are being tracked and how to modify the JavaScript tracking code to our needs. The default tracking code that Piwik provides us with will do a lot, but sometimes we may need to tweak it for special cases.

In this chapter, we will cover the following topics:

  • Using the Piwik JavaScript tracking code
  • Functioning of default JavaScript
  • Triggering page views manually
  • Customizing page names
  • Customizing page URLs, referrer URLs, and domain names
  • Configuring Piwik's tracking cookies
  • Setting up download and outlink tracking
  • Using other Piwik JavaScript API methods
  • Using multiple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required