2017 © Pedro Peláez
 

library piwik-php-tracker

PHP Client for Piwik Analytics Tracking API

image

piwik/piwik-php-tracker

PHP Client for Piwik Analytics Tracking API

  • Thursday, February 1, 2018
  • by piwik
  • Repository
  • 22 Watchers
  • 83 Stars
  • 340,437 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 41 Forks
  • 8 Open issues
  • 12 Versions
  • 9 % Grown

The README.md

PHP Client for Matomo Analytics Tracking API

The PHP Tracker Client provides all features of the Matomo Javascript Tracker, such as Ecommerce Tracking, Custom Variables, Event Tracking and more., (*1)

Documentation and examples

Check out our Matomo-PHP-Tracker developer documentation and Matomo Tracking API guide., (*2)

// Required variables
$matomoSiteId = 6;                  // Site ID
$matomoUrl = "https://example.tld"; // Your matomo URL
$matomoToken = "";                  // Your authentication token

// Optional variable
$matomoPageTitle = "";              // The title of the page

// Load object
require_once("MatomoTracker.php");

// Matomo object
$matomoTracker = new MatomoTracker((int)$matomoSiteId, $matomoUrl);

// Set authentication token
$matomoTracker->setTokenAuth($matomoToken);

// Track page view
$matomoTracker->doTrackPageView($matomoPageTitle);

Requirements:

  • JSON extension (json_decode, json_encode)
  • cURL or stream extension (to issue the HTTPS request to Matomo)

Installation

Composer

composer require matomo/matomo-php-tracker

Manually

Alternatively, you can download the files and require the Matomo tracker manually:, (*3)

require_once("MatomoTracker.php");

License

Released under the BSD License, (*4)

The Versions

01/02 2018

dev-mattab-patch-1

dev-mattab-patch-1 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

09/11 2017

dev-master

9999999-dev http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

09/11 2017

1.4.0

1.4.0.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

08/06 2017

1.3.0

1.3.0.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

19/04 2017

dev-arraycustomparam

dev-arraycustomparam http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

18/02 2017

1.2.0

1.2.0.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

03/01 2017

dev-ping_method

dev-ping_method http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

27/12 2016

1.1.0

1.1.0.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

13/07 2016

1.0.3

1.0.3.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

12/01 2016

1.0.2

1.0.2.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

11/11 2015

1.0.1

1.0.1.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker

19/12 2014

1.0.0

1.0.0.0 http://piwik.org

PHP Client for Piwik Analytics Tracking API

  Sources   Download

BSD-2-Clause

analytics piwik tracker