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

Accessing Piwik's data

So far, we have looked at a couple of great examples of embedding Piwik in another application. And we have used the code that Piwik gives us to embed widgets on other web pages. But we haven't really looked at all that we can do with this analytics API. If we want to do a something a little bit different with the data, or use charts and graphs that are a different style to fit in with our project, we will need to do a bit more.

With the Piwik analytics API, you can programmatically request reports from Piwik. This API is very flexible and will return the data you request in the following formats:

  • XML: Extensible Markup Language
  • JSON: JavaScript Object Notation
  • TSV: Tab Separated Values, for Excel
  • RSS: Really Simple Syndication ...

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