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

Appendix A. Tracking API Reference

This appendix is for extended reference to the Piwik tracking API which was covered in depth in Chapter 9, Advanced Tracking and Development, of this book.

The Piwik tracking API

The Piwik tracking API allows you to track websites and apps where JavaScript won't do the job. It can be accessed through any type of programming language using an HTTP request.

Variables

The URL to your Piwik installation must be set first. You can set this in the following manner:

PiwikTracker::$URL = 'http://yourwebsite.org/piwik/'

Methods

The Piwik tracking API gives you access to all the methods that are available in the JavaScript tracker.

Constructor __construct

This method builds a PiwikTracker object.

PiwikTracker __construct (int ...

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