Skip to content
Extraits de code Groupes Projets
CHANGELOG.md 56,86 Kio

Piwik Platform Changelog

This is the Developer Changelog for Piwik platform developers. All changes in our HTTP API's, Plugins, Themes, SDKs, etc. are listed below.

The Product Changelog at piwik.org/changelog lets you see more details about any Piwik release, such as the list of new guides and FAQs, security fixes, and links to all closed issues.

Piwik 3.1.0

Breaking Changes

  • The event Live.getAllVisitorDetails has been deprecated and will be removed in Piwik 4. Use a VisitorDetails class instead (see Live plugin).

New Features

  • New method setSecureCookie that sets the cookie's secure parameter

New APIs

  • The events ScheduledTasks.shouldExecuteTask, ScheduledTasks.execute, ScheduledTasks.execute.end have been added to customize the behaviour of scheduled tasks.
  • A new event CustomPiwikJs.shouldAddTrackerFile has been added to let plugins customize which tracker files should be included in piwik.js JavaScript tracker
  • A new event Login.authenticate.successful has been added, which is triggered when a user successful signs in
  • A new API class Piwik\Plugins\CustomPiwikJs\TrackerUpdater has been added to update the piwik.js JavaScript tracker

New commands

  • The commands plugin:activate and plugin:deactivate can now activate and deactivate multiple plugins at once

Piwik 3.0.4

New APIs

  • A new event Db.getActionReferenceColumnsByTable has been added in case a plugin defines a custom log table which references data to the log_action table
  • The event System.addSystemSummaryItems and System.filterSystemSummaryItems have been added so plugins can add items and filter items of the system summary widget
  • A new JavaScript tracker method getPiwikUrl has been added to retrieve the URL of where the Piwik instance is located
  • A new JavaScript tracker method getCurrentUrl has been added to retrieve the current URL of the website.
  • A new JavaScript tracker method getNumTrackedPageViews has been added to retrieve the number of tracked page views within the currently loaded page or web application.
  • New JavaScript tracker methods setSessionCookie, getCookie, hasCookies, getCookieDomain, getCookiePath, and getSessionCookieTimeout have been added for better cookie support in plugins.
  • email and url form fields can now be used in settings.

Piwik 3.0.3

Breaking Changes

  • New config setting enable_plugin_upload lets you enable uploading and installing a Piwik plugin ZIP file by a Super User. This used to be enabled by default, but it is now disabled by default now for security reasons.
  • New Report class property Report::$supportsFlatten lets you define if a report supports flattening (defaults to true). If set to false it will also set ViewDataTable\Config::$show_flatten_table to false

New APIs

  • A new event Controller.triggerAdminNotifications has been added to let plugins know when they are supposed to trigger notifications in the admin.

Library updates

  • pChart library has been removed in favor of CpChart, a pChart fork with composer support and PSR standards.

Piwik 3.0.2

New Features

  • A new SMS provider for sms reports has been added: ASPSMS.com

New APIs

  • The JavaScript Tracker now supports CrossDomain tracking. The following tracker methods were added for this: enableCrossDomainLinking, disableCrossDomainLinking, isCrossDomainLinkingEnabled
  • Added JavaScript Tracker method getLinkTrackingTimer to get the value of the configured link tracking time
  • Added JavaScript Tracker method deleteCustomVariables to delete all custom variables within a certain scope
  • The method enableLinkTracking can now be called several times to make Piwik aware of newly added links when your DOM changes
  • Added a new method Piwik\Plugin\Report::getMetricNamesToProcessReportTotals() that lets you define which metrics should show percentages in the table report visualization on hover. If defined, these percentages will be automatically calculated.
  • The event Tracker.newConversionInformation now posts a new fourth parameter $action
  • New HTTP API method UserCountry.getCountryCodeMapping to get a list of used country codes to country names

Changes

  • SMS provider now can define their credential fields by overwriting getCredentialFields(). This allows to have SMS providers that require more than only an API key.
  • Therefore the MobileMessaging API method setSMSAPICredential() now takes the second parameter as an array filled with credentials (instead of a string containing an API key)

Piwik 3.0.1