This is the Developer Changelog for Matomo platform developers. All changes in our HTTP API's, Plugins, Themes, SDKs, etc. are listed below.
The Product Changelog at matomo.org/changelog lets you see more details about any Matomo release, such as the list of new guides and FAQs, security fixes, and links to all closed issues.
- A new role has introduced called "write" which has less permissions than an admin but more than a view only user (see FAQ).
- Custom currencies can now be added using the
currencies[]
configuration key. - A new segment
eventValue
lets you select all users who tracked a custom event with a given value or range of values.
archiving_profile = 0
, if set to 1, core:archive profiling information will be recorded in a log file. the log file is determined by thearchive_profiling_log
option.archive_profiling_log =
, if set to an absolute path, core:archive profiling information will be logged to specified file.enable_internet_features=0
will now fully disable Internet access by preventing all outgoing connections. Note: changing this setting is not recommended for security, because you will lose the easy auto-update and email notifications.login_whitelist_ip[]
now supports hostnames so you can whitelist your IP addresses and/or Hostnames and keep your Matomo secure.
- New parameter
--concurrent-archivers
to define the number of maximum archivers to run in parallel on this server. Useful to prevent archiving processes piling up and ultimately failing.
- Added new event
API.addGlossaryItems
which lets you add items to the glossary. - Added new event
Tracker.detectReferrerSocialNetwork
which lets you add custom social network detections - Added new event
Report.unsubscribe
which is triggered whenever someone unsubscribe from a report - Added new API method
UsersManager.getAvailableRoles
to fetch a list of all available roles that can be granted to a user. - Added new API method
UsersManager.getAvailableCapabilities
to fetch a list of all available capabilities that can be granted to a user. - Added new API method
UsersManager.addCapabilities
to grant one or multiple capabilities to a user. - Added new API method
UsersManager.removeCapabilities
to remove one or multiple capabilities from a user. - The API method
UsersManager.setUserAccess
now accepts an array to pass a role and multiple capabilities at once. - Plugin classes can overwrite the method
requiresInternetConnection
to define if they should be automatically unloaded if no internet connection is available (enable_internet_features = 0) - Added two new methods to the JS tracker:
removeEcommerceItem
andclearEcommerceCart
to allow better control over what is in the ecommerce cart. - Tracking API requests now include
&consent=1
in the Tracking API URL When consent has been given by a user.
- Changed some menu items to use translation keys instead (see PR #12885).
- The methods
assertResponseCode()
andassertHttpResponseText()
inPiwik\Tests\Framework\TestCase\SystemTestCase
have been deprecated and will be removed in Matomo 4.0. Please usePiwik\Http
instead. - The classes
PHPUnit\Framework\Constraint\HttpResponseText
andPHPUnit\Framework\Constraint\ResponseCode
have been deprecated and will be removed in Matomo 4.0. Please usePiwik\Http
instead. - Creating links through the Proxy has been deprecated. Use rel="nofollow" instead.
- The console option
--piwik-domain
has been deprecated and will be removed in Matomo 4.0. Use--matomo-domain
instead - Social networks are now detected as new referrer type (ID=7), which allows improved reports and better segmentation
- New settings form field UI component "Field Array" that lets users enter multiple values for one setting as a flat array
- Added new method
Piwik\API\Request::isRootRequestApiRequest()
to detect if the root request is an API request.
- Flattened action url reports now always include a leading
/
and will no longer include thedefault_action_name
. e.g.path/to/index
will now be/path/to/
. This might affect configured custom alerts, as this plugin uses the flattened url reports for comparison.
- New JavaScript tracker functions to ask for consent:
requireConsent
,rememberConsentGiven
,setConsentGiven
,forgetConsentGiven
.
- New events
PrivacyManager.deleteLogsOlderThan
,PrivacyManager.exportDataSubjects
andPrivacyManager.deleteDataSubjects
to enable plugins to be GDPR compliant. - New event
AssetManager.addStylesheets
to add additional less styles which are not located in a file. - New event
Archiving.getIdSitesToMarkArchivesAsInvalidated
that lets plugins customize the behaviour of report invalidations. - Reports and visualizations can now disable the 'all' rows limit selector:
$view->config->disable_all_rows_filter_limit
. - New settings form field UI component "Multi Tuple" that lets users enter multiple values for one setting
piwik
font is deprecated and will be removed in Matomo 4.0. Please use new matomo
font instead
Sending synchronous requests using ajaxHelper is now deprecated. All requests will be send async as of Matomo 4.0
- A new JavaScript tracker method
resetUserId
has been added to allow clearing user and visitor id. - A new event
Actions.addActionTypes
has been added, to allow plugins to add their custom action types. - Dashboard API has been extended by the methods
copyDashboardToUser
,createNewDashboardForUser
,removeDashboard
andresetDashboardLayout
- It is also now possible to delete the first dashboard for a user for automation purposes. Doing so and not adding a new first dashboard might result in buggy UX.
getDashboards
API method has been extended by additional parameters to fetch dashboards for specific user
- A new event
API.Request.intercept
has been added which allows plugins to intercept API requests to perform custom logic, overriding the original API method. - A new event
Request.shouldDisablePostProcessing
has been added which allows plugins to disable DataTable post processing for individual API requests. - A new event
SitesManager.shouldPerformEmptySiteCheck
has been added to allow plugins to disable the empty site check for individual sites. - A new JavaScript tracker method
getCrossDomainLinkingUrlParameter
has been added so you can add cross domain tracking capability to dynamically created links. Learn here how to append the result to said links' URLs, see the section "Advanced: Handling Dynamically Generated Links"
Piwik is now Matomo. Read more about this change in the official announcement.
- New HTTP API
API.getMatomoVersion
was introduced. The previous HTTP APIAPI.getPiwikVersion
will still work but will now be hidden from the API reference page.
- The
historyService
along withbroadcast.init
,broadcast.propagateAjax
,broadcast.pageLoad
have been deprecated and will be removed in Piwik 4.
- Themes can now customize the header text color using
@theme-color-header-text
- New event
Widgetize.shouldEmbedIframeEmpty
added so plugins can optionally define the output of the widgetized HTML themselves - New events added to add and filter visitor details:
Live.addProfileSummaries
andLive.filterProfileSummaries
- New JavaScript method
piwikHelper.registerShortcut
allows plugins to bind keyboard shortcuts. A summary for available shortcuts will be shown by pressing?
- New Segment added:
visitStartServerMinute
for Server time - minute (Start of visit) - New Segment added:
visitEndServerMinute
for Server time - minute (End of visit) - New events added to add and filter visitor details:
Live.addVisitorDetails
andLive.filterVisitorDetails
- Reports and visualizations can now hide the export icons with a new property
$view->config->show_export
. - Reports and visualizations can now show a message above the report with a new property
$view->config->show_header_message
. - The following events have been added:
Metric.addMetrics
Triggered to add new metrics that cannot be picked up automatically by the platform.Metric.addComputedMetrics
Triggered to add computed metrics that are not generated automaticallyMetric.filterMetrics
Triggered to filter metrics
- The following new API classes have been added:
Piwik\Columns\MetricsList
Holds a list of all available metricsPiwik\Columns\ComputedMetricFactory
Can be used to create computed metricsPiwik\Columns\DimensionMetricFactory
Can be used to create metrics directly within a dimension
- New config.ini.php setting
show_update_notification_to_superusers_only
makes it possible to hide update notifications for all users except of superusers
- The event
Live.getAllVisitorDetails
has been deprecated and will be removed in Piwik 4. Use aVisitorDetails
class instead (see Live plugin).
- New method
setSecureCookie
that sets the cookie's secure parameter
- 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
- The commands
plugin:activate
andplugin:deactivate
can now activate and deactivate multiple plugins at once
- 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
andSystem.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
, andgetSessionCookieTimeout
have been added for better cookie support in plugins. email
andurl
form fields can now be used in settings.
- 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 totrue
). If set tofalse
it will also setViewDataTable\Config::$show_flatten_table
tofalse
- A new event
Controller.triggerAdminNotifications
has been added to let plugins know when they are supposed to trigger notifications in the admin.
- pChart library has been removed in favor of CpChart, a pChart fork with composer support and PSR standards.
- A new SMS provider for sms reports has been added: ASPSMS.com
- 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
- 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)
- Live API responses now return a new field ‘generationTimeMilliseconds’ (the generation time for this page, in milliseconds) which is internally used to process the Average generation time in the Visitor Profile
- Added new event
MultiSites.filterRowsForTotalsCalculation
to filter which sites will be included in the All Websites Dashboard totals calculation. - The method
Piwik\Plugin\Archiver::shouldRunEvenWhenNoVisits()
has been added. By overwriting this method and returning true, a plugin archiver can force the archiving to run even when there was no visit for the website/date/period/segment combination (by default, archivers are skipped when there is no visit).
Read more about migrating a plugin from Piwik 2.X to Piwik 3 in our Migration guide.
-
When using the Piwik JavaScript Tracking via
_paq.push
, it is now required to configure the tracker (eg callingsetSiteId
andsetTrackerUrl
) before thepiwik.js
JavaScript tracker is loaded to ensure the tracker works correctly. If the tracker is not initialised correctly, the browser console will display the error "_paq.push() was used but Piwik tracker was not initialized before the piwik.js file was loaded. [...]" -
The UserManager API methods do no longer return any
token_auth
properties when requesting a user -
The menu classes
Piwik\Menu\MenuReporting
andPiwik\Menu\MenuMain
have been removed -
The class
Piwik\Plugin\Widgets
has been removed and replaced byPiwik\Widget\Widget
. For each widget one class is needed from now on. You can generate a widget via./console generate:widget
. -
The class
Piwik\WidgetList
class has been moved toPiwik\Widget\WidgetsList
. -
The method
Piwik\Plugins\API\API::getLastDate()
has been removed. -
The method
Piwik\Archive::getDataTableFromArchive()
has been removed, usePiwik\Archive::createDataTableFromArchive
instead. -
The method
Piwik\Plugin\Menu::configureReportingMenu
has been removed. To add something to the reporting menu you need to create widgets -
The method
Report::configureWidget()
,Report::getWidgetTitle()
andReport::configureReportingMenu()
have been removed, use the new methodReport::configureWidgets()
instead. -
The method
Report::getCategory()
has been moved toReport::getCategoryId()
and does no longer return the translated category but the translation key of the category. -
The property
Report::$category
has been renamed toReport::$categoryId
-
The methods
Report::factory()
,Report::getAllReportClasses()
,Report::getAllReports
have been moved to thePiwik\Plugin\Reports
class. -
The properties
Report::$widgetTitle
,Report::$widgetParams
andReport::$menuTitle
were removed, use the methodReport::configureWidgets()
to create widgets instead -
In the HTTP API methods
Dashboard.getDefaultDashboard
andDashboard.getUserDashboards
we do no longer remove not existing widgets as it is up to the client which widgets actually exist -
The method
Piwik\Plugin\Controller::getEvolutionHtml
has been removed without a replacement as it should be no longer needed. The evolution is generated by ViewDataTables directly -
The
core:plugin
console command has been removed in favor of the newplugin:list
,plugin:activate
andplugin:deactivate
commands as announced in Piwik 2.11 -
The visibility of private properties and methods in
Piwik\Plugins\Login\Controller
were changed toprotected
-
Controller actions are now case sensitive. This means the URL and events have to use the same case as the name of the action defined in a controller.
-
When calling the HTTP Reporting API, a default filter limit of 100 is now always applied. The default filter limit used to be not applied to API calls that do not return reports, such as when requesting sites, users or goals information.
-
The "User Menu" was removed and should be replaced by "Admin Menu". Change
configureUserMenu(MenuUser $menu)
toconfigureAdminMenu(MenuAdmin $menu)
in yourMenu.php
. -
The method
Piwik\Menu\MenuAbstract::add()
has been removed, usePiwik\Menu\MenuAbstract::addItem()
instead -
The method
Piwik\Menu\MenuAdmin::addSettingsItem()
was removed, usePiwik\Menu\MenuAdmin::addSystemItem()
instead. -
A new method
Piwik\Menu\MenuAdmin::addMeasurablesItem()
was added. -
The class
Piwik\Plugin\Settings
has been split toPiwik\Settings\Plugin\SystemSettings
andPiwik\Settings\Plugin\UserSettings
. -
The creation of settings has slightly changed to improve performance. It is now possible to create new settings via the method
$this->makeSetting()
seePiwik\Plugins\ExampleSettingsPlugin\SystemSettings
for an example. -
It is no longer possible to define an introduction text for settings.
-
If requesting multiple periods for one report, the keys that define the range are no longer translated. For example before 3.0 an API response may contain:
<result date="From 2010-02-01 to 2010-02-07">
which is now<result date="2010-02-01,2010-02-07">
. -
The following deprecated events have been removed as mentioned.
-
Tracker.existingVisitInformation
Use dimensions instead of usingTracker
events. -
Tracker.newVisitorInformation
-
Tracker.recordAction
-
Tracker.recordEcommerceGoal
-
Tracker.recordStandardGoals
-
API.getSegmentDimensionMetadata
Define segments in Dimension instead -
Menu.Admin.addItems
Create a Menu instead of usingMenu
events -
Menu.Reporting.addItems
-
Menu.Top.addItems
-
ViewDataTable.addViewDataTable
Create a Visualization instead -
ViewDataTable.getDefaultType
Specify the default type in a Report instead -
Login.authenticate
Create a custom SessionInitializer instead of usingLogin
events -
Login.initSession.end
-
Login.authenticate.successful
-
When posting one of the events
API.Request.dispatch
,API.Request.dispatch.end
,API.$plugin.$apiAction
, orAPI.$plugin.$apiAction.end
the$finalParameters
parameter is indexed in Piwik 2 (egarray(1, 6)
), and named in Piwik 3 (egarray('idSite' => 1, 'idGoal' => 6)
) -
Widgets using the already removed
UserSettings
plugin won't work any longer. Please update the module and action parameter in the widget url according to the following listold module old action new module new action UserSettings getPlugin DevicePlugins getPlugin UserSettings index DevicesDetection software UserSettings getBrowser DevicesDetection getBrowsers UserSettings getBrowserVersions DevicesDetection getBrowserVersions UserSettings getMobileVsDesktop DevicesDetection getType UserSettings getOS DevicesDetection getOsVersions UserSettings getOSFamily DevicesDetection getOsFamilies UserSettings getBrowserType DevicesDetection getBrowserEngines UserSettings getResolution Resolution getResolution UserSettings getConfiguration Resolution getConfiguration UserSettings getLanguage UserLanguage getLanguage UserSettings getLanguageCode UserLanguage getLanguageCode
Read more about migrating a plugin from Piwik 2.X to Piwik 3 on our Migration guide.
- The method
Piwik\Updates::getMigrationQueries()
has been deprecated and renamed togetMigrations()
. It is still supported to use the method, but the method will be removed in Piwik 4.0.0 - The method
Piwik\Updater::executeMigrationQueries()
has been deprecated and renamed toexecuteMigrations
. It is still supported to use the method, but the method will be removed in Piwik 4.0.0.
- Multiple widgets for one report can now be created via the
Report::configureWidgets()
method via the new classesPiwik\Widget\ReportWidgetFactory
andPiwik\Widget\ReportWidgetConfig
- There is a new property
Report::$subCategory
that lets you add a report to the reporting UI. If a page having that name does not exist yet, it will be created automatically. The newly added methodReport::getSubCategory()
lets you get this value. - The new classes
Piwik\Widget\Widget
,Piwik\Widget\WidgetConfig
andPiwik\Widget\WidgetContainerConfig
lets you create a new widget. - The new class
Piwik\Category\Subcategory
let you change the name and order of menu items - New HTTP API method
API.getWidgetMetadata
to get a list of available widgets - New HTTP API method
API.getReportPagesMetadata
to get a list of all available pages that exist including the widgets they include - New HTTP API method
SitesManager.getSiteSettings
to get a list of all available settings for a specific site - The JavaScript AjaxHelper has a new method
ajaxHelper.withTokenInUrl()
to easily send a token along a XHR. Within the Controller the existence of this token can be checked via$this->checkTokenInUrl();
to prevent CSRF attacks. - The new class
Piwik\Updater\Migration\Factory
lets you easily create migrations that can be executed during an update. For example database or plugin related migrations. To generate a new update with migrations execute./console generate:update
. - The new method
Piwik\Updater::executeMigration
lets you execute a single migration. - The new method
Piwik\Segment::willBeArchived
lets you detect whether a segment will be archived or not. - The following events have been added:
ViewDataTable.filterViewDataTable
lets you filter available visualizationsDimension.addDimension
lets you add custom dimensionsDimension.filterDimension
lets you filter any dimensionsReport.addReports
lets you add dynamically created reportsReport.filterReports
lets you filter any reportUpdater.componentUpdated
triggered after core or a plugin has been updatedPluginManager.pluginInstalled
triggered after a plugin was installedPluginManager.pluginUninstalled
triggered after a plugin was uninstalledUpdater.componentInstalled
triggered after a component was installedUpdater.componentUninstalled
triggered after a component was uninstalled- New HTTP Tracking API parameter
pv_id
which accepts a six character unique ID that identifies which actions were performed on a specific page view. Read more about it in the HTTP Tracking API; - New event
Segment.addSegments
that lets you add segments. - New Piwik JavaScript Tracker method
disableHeartBeatTimer()
to disable the heartbeat timer if it was previously enabled. - The
SitesManager.getJavascriptTag
has a new optiongetJavascriptTag
to enable the tracking of users that have JavaScript disabled
- New now accept tracking requests for up to 1 day in the past instead of only 4 hours
- If a tracking request has a custom timestamp that is older than one day and the tracking request is not authenticated, we ignore the whole tracking request instead of ignoring the custom timestamp and still tracking the request with the current timestamp
- Piwik JavaScript Tracking API: we now attempt to track Downloads and Outlinks when the user uses the mouse middle click or the mouse right right click. Previously only left clicks on Downloads and Outlinks were measured.
- New "Sparklines" visualization that lets you create a widget showing multiple sparklines.
- New config.ini.php setting:
tracking_requests_require_authentication_when_custom_timestamp_newer_than
to change how far back Piwik will track your requests without authentication. By default, value is set to 86400 (one day). The configured value is in seconds.
- Updated AngularJS from 1.2.28 to 1.4.3
- Updated several backend libraries to their latest version: doctrine/cache, php-di.
- Support for IE8 was dropped. This affects only the Piwik UI, not the Piwik.js Tracker.
- Required PHP version was increased from 5.3 to 5.5.9
- We have updated PhantomJS 1.9 to 2.1.1 for our UI screenshot tests.
- The Piwik JavaScript tracker has a new method
trackRequest
that allows you to send any tracking parameters to Piwik. For example_paq.push(['trackRequest', 'te=foo&bar=baz'])
- Expected screenshots for UI tests are now stored using Git LFS instead of a submodule. Running, creating or updating UI tests will require Git LFS to be installed.
The folder containing expected screenshots was renamed from
expected-ui-screenshots
toexpected-screenshots
. The UI-Test-Runner is now able to handle both names.
- Multiple JavaScript trackers can now be created easily via
_paq.push(['addTracker', piwikUrl, piwikSiteId])
. All tracking requests will be then sent to all added Piwik trackers. Learn more. - It is possible to get an asynchronously created tracker instance (
addTracker
) via the methodPiwik.getAsyncTracker(optionalPiwikUrl, optionalPiwikSiteId)
. This allows you to get the tracker instance and to send different tracking requests to this Piwik instance and to configure it differently than other tracker instances. - Added a new API method
Goals.getGoal($idSite, $idGoal)
to fetch a single goal.
- Piwik is now compatible with PHP7.
piwik.js
, if you call the methodsetDomains
note that that the behavior has slightly changed. The current page domain (hostname) will now be added automatically if none of the given host alias passed as a parameter tosetDomains
contain a path and if no host alias is already given for the current host alias. Say you are on "example.org" and sethostAlias = ['example.com', 'example.org/test']
then the current "example.org" domain will not be added as there is already a more restrictive hostAlias 'example.org/test' given. We also do not add the current page domain (hostname) automatically if there was any other host specifying any path such as['example.com', 'example2.com/test']
. In this case we also do not add the current page domain "example.org" automatically as the "path" feature is used. As soon as someone uses the path feature, for Piwik JS Tracker to work correctly in all cases, one needs to specify all hosts manually. Learn more.piwik.js
: after an ecommerce order is tracked usingtrackEcommerceOrder
, the items in the cart will now be removed from the JavaScript object. CallingtrackEcommerceCartUpdate
will not remove the items in the cart.
- New method
setIsWritableByCurrentUser
forSystemSetting
to change the writable permission for certain system settings via DI. - JS Tracker:
setDomains
function now supports page wildcards matching eg.example.com/index*
which can be useful when tracking a group of pages within a domain in a separate website in Piwik - To customise the list of URL query parameters to be removed from your URLs, you can now define and overwrite
url_query_parameter_to_exclude_from_url
INI setting in yourconfig.ini.php
file. By default, the following query string parameters will be removed:gclid, fb_xd_fragment, fb_comment_id, phpsessid, jsessionid, sessionid, aspsessionid, doing_wp_cron, sid
.
- The following PHP functions have been deprecated and will be removed in Piwik 3.0:
SettingsServer::isApache()
- JavaScript Tracker: Measuring domains and/or sub-domains
- Reporting API: when a cell value in a CSV or TSV (excel) data export starts with a character
=
,-
or+
, Piwik will now prefix the value with'
to ensure that it is displayed correctly in Excel or OpenOffice/LibreOffice.
- Tracking API: by default, when tracking a Page URL, Piwik will now remove the URL query string parameter
sid
if it is found. - In the JavaScript tracker, the function
setDomains
will not anymore attempt to set a cookie path. Learn more about configuring the tracker correctly when tracking one or several domains and/or paths.
- The setting
[General]enable_marketplace=0/1
was removed, instead the new plugin Marketplace can be disabled/enabled. The updater should automatically migrate an existing setting.
- New segment
actionType
lets you segment all actions of a given type, eg.actionType==events
oractionType==downloads
. Action types values are:pageviews
,contents
,sitesearches
,events
,outlinks
,downloads
- New segment
actionUrl
lets you segment any action that matches a given URL, whether they are Pageviews, Site searches, Contents, Downloads or Events. - New segment
deviceBrand
lets you restrict your users to those using a particular device brand such as Apple, Samsung, LG, Google, Nokia, Sony, Lenovo, Alcatel, etc. View the complete list of device brands. - New segment operators
=^
"Starts with" and=$
"Ends with" complement the existing segment operators: Contains, Does not contain, Equals, Not equals, Greater than or equal to, Less than or equal to. - The JavaScript Tracker method
PiwikTracker.setDomains()
can now handle paths. This means when setting eg_paq.push(['setDomains, '*.matomo.org/website1'])
all link that goes to the same domainmatomo.org
but to any other path thanwebsite1/*
will be treated as outlink. - In Administration > Websites, for each website, there is a checkbox "Only track visits and actions when the action URL starts with one of the above URLs". In Piwik 2.14.0, any action URL starting with one of the Alias URLs or starting with a subdomain of the Alias URL would be tracked. As of Piwik 2.15.0, when this checkbox is enabled, it may track less data: action URLs on an Alias URL subdomain will not be tracked anymore (you must specify each sub-domain as Alias URL).
- It is now possible to pass an option
php-cli-options
to thecore:archive
command. The given cli options will be forwarded to the actual PHP command. This allows to for example specify a different memory limit for the archiving process like this:./console core:archive --php-cli-options="-d memory_limit=8G"
- New less variable
@theme-color-menu-contrast-textSelected
that lets you specify the color of a selected menu item. - in Administration > Diagnostics, there is a new page
Config file
which lets Super User view all config values fromglobal.ini.php
in the UI, and whether they were overridden in yourconfig/config.ini.php
- New command
config:set
lets you set INI config options from the command line. This command can be used for convenience or for automation.
UsersManager.*
API calls: when an API request specifies atoken_auth
of a user withadmin
permission, the returned dataset will not include all usernames as previously, API will now only return usernames for users withview
oradmin
permission to website(s) viewable by thistoken_auth
.- When generating a new plugin skeleton via
generate:plugin
command, plugin name must now contain only letters and numbers. - JavaScript Tracker tests no longer require
SQLite
. The existing MySQL configuration for tests is used now. In order to run the tests make sure Piwik is installed and[database_tests]
is configured inconfig/config.ini.php
. - The definitions for search engine and social network detection have been moved from bundled data files to a separate package (see https://github.com/matomo-org/searchengine-and-social-list).
- In UI screenshot tests, a test environment
configOverride
setting should be no longer overwritten. Instead new values should be added to the existingconfigOverride
array in PHP or JavaScript. For example instead oftestEnvironment.configOverride = {group: {name: 1}}
usetestEnvironment.overrideConfig('group', 'name', '1')
.
- Add your own SMS/Text provider by creating a new class in the
SMSProvider
directory of your plugin. The class has to extendPiwik\Plugins\MobileMessaging\SMSProvider
and implement the required methods. - Segments can now be composed by a union of multiple segments. To do this set an array of segments that shall be used for that segment
$segment->setUnionOfSegments(array('outlinkUrl', 'downloadUrl'))
instead of defining a SQL column.
- The method
DB::tableExists
was un-used and has been removed.
- New command
diagnostics:analyze-archive-table
that analyzes archive tables - New command
database:optimize-archive-tables
to optimize archive tables and possibly save disk space (even if on InnoDB) - New Command
core:invalidate-report-data
to invalidate archive data (w/ period cascading) (FAQ)
- Piwik 2.15.0 is now mostly compatible with PHP7.
- The JavaScript Tracker
piwik.js
got a new methodlogAllContentBlocksOnPage
to log all found content blocks within a page to the console. This is useful to debug / test content tracking. It can be triggered via_paq.push(['logAllContentBlocksOnPage'])
- The Class
Piwik\Plugins\Login\Controller
is now considered a public API. - The new method
Piwik\Menu\MenuAbstract::registerMenuIcon()
can be used to define an icon for a menu category to replace the default arrow icon. - New event
CronArchive.getIdSitesNotUsingTracker
that allows you to set a list of idSites that do not use the Tracker API to make sure we archive these sites if needed. - New events
CronArchive.init.start
which is triggered when the CLI archiver starts andCronArchive.end
when the archiver ended. - Piwik tracker can now be configured with strict Content Security Policy (CSP FAQ).
- Super Users can choose whether to use the latest stable release or latest Long Term Support release.
- The method
Dimension::getId()
has been set asfinal
. It is not allowed to overwrite this method. - We fixed a bug where the API method
Sites.getPatternMatchSites
only returned a very limited number of websites by default. We now return all websites by default unless a limit is specified specifically. - Handling of localized date, time and range formats has been changed. Patterns no longer contain placeholders like %shortDay%, but work with CLDR pattern instead. You can use one of the predefined format constants in Date class for using getLocalized().
- As we are now using CLDR formats for all languages, some time formats were even changed in english. Attributes like prettyDate in API responses might so have been changed slightly.
- The config
enable_measure_piwik_usage_in_idsite
which is used to track the Piwik usage with Piwik was removed and replaced by a new pluginAnonymousPiwikUsageMeasurement
- The following HTTP API methods have been deprecated and will be removed in Piwik 3.0:
SitesManager.getSitesIdWithVisits
API.getLastDate
- The following events have been deprecated and will be removed in Piwik 3.0. Use dimensions instead.
Tracker.existingVisitInformation
Tracker.getVisitFieldsToPersist
Tracker.newConversionInformation
Tracker.newVisitorInformation
Tracker.recordAction
Tracker.recordEcommerceGoal
Tracker.recordStandardGoals
- The Platform API method
\Piwik\Plugin::getListHooksRegistered()
has been deprecated and will be removed in Piwik 4.0. Use\Piwik\Plugin::registerEvents()
instead.
- When logging in, the username is now case insensitive
- URLs with emojis and any other unicode character will be tracked, with special characters replaced with
�
- A permanent warning notification is now displayed when PHP is 5.4.* or older, since it has reached End Of Life
- In
piwik.js
we replaced JSON2 with JSON3 to implement CSP (Content Security Policy) as JSON3 does not useeval()
. JSON3 will be used if a browser does not provide a native JSON API. We are usingJSON3
in a way that it will not conflict if your website is usingJSON3
as well. - The option
branch
of the console commanddevelopment:sync-system-test-processed
was removed as it is no longer needed. - All numbers in reports will now appear formatted (eg.
1,000,000
instead of1000000
) - Database connections now use
UTF-8
charset explicitly to force UTF-8 data handling
- The
UserSettings
API has been removed. The API was deprecated in earlier versions. UseDevicesDetection
,Resolution
andDevicePlugins
API instead. - Many translations have been moved to the new Intl plugin. Most of them will still work, but please update their usage. See matomo-org#8101 for a full list
- The JavaScript Tracker does now track outlinks and downloads if a user opens the context menu if the
enabled
parameter of theenableLinkTracking()
method is set totrue
. To use this new feature usetracker.enableLinkTracking(true)
or_paq.push(['enableLinkTracking', true]);
. This is not industry standard and is vulnerable to false positives since not every user will select "Open in a new tab" when the context menu is shown. Most users will do though and it will lead to more accurate results in most cases. - The JavaScript Tracker now contains the 'heart beat' feature which can be used to obtain more accurate visit lengths by periodically sending 'ping' requests to Piwik. To use this feature use
tracker.enableHeartBeatTimer();
or_paq.push(['enableHeartBeatTimer']);
. By default, a ping request will be sent every 15 seconds. You can specify a custom ping delay (in seconds) by passing an argument, eg,tracker.enableHeartBeatTimer(10);
or_paq.push(['enableHeartBeatTimer', 10]);
. - New custom segment
languageCode
that lets you segment visitors that are using a particular language. Example values:de
,fr
,en-gb
,zh-cn
, etc. - Segment
userId
now supports any segment operator (previously only operator Contains=@
was supported for this segment).
- The command
core:archive
now has two new parameter:--force-idsegments
and--skip-idsegments
that let you force (or skip) processing archives for one or several custom segments. - The command
scheduled-tasks:run
now has an argumenttask
that lets you force run a particular scheduled task.
- Updated pChart library from 2.1.3 to 2.1.4. The files were moved from the directory
libs/pChart2.1.3
tolibs/pChart
- To execute UI tests "ImageMagick" is now required.
- The Q JavaScript promise library is now distributed with tests and can be used in the piwik.js tests.
- The API method
Live.getLastVisitsDetails
does no longer support the API parameterfilter_sort_column
to prevent possible memory issues whenfilter_offset
is large. - The Event
Site.setSite
was removed as it causes performance problems. piwik.php
does now return a HTTP 400 (Bad request) if requested without any tracking parameters (GET/POST). If you still want to usepiwik.php
for checks please usepiwik.php?rec=0
.
- The method
Piwik\Archive::getBlob()
has been deprecated and will be removed from June 1st 2015. Use one of the methodsgetDataTable*()
methods instead. - The API parameter
countVisitorsToFetch
of the API methodLive.getLastVisitsDetails
has been deprecated asfilter_offset
andfilter_limit
work correctly now.
- There is now a
diagnostic:run
command to run the system check from the command line. - There is now an option
--xhprof
that can be used with any command to profile that command via XHProf.
- Visitor details now additionally contain:
deviceTypeIcon
,deviceBrand
anddeviceModel
- In 2.6.0 we added the possibility to use
filter_limit
andfilter_offset
if an API returns an indexed array. This was not working in all cases and is fixed now. - The API parameter
filter_pattern
andfilter_offset[]
can now be used if an API returns an indexed array.
- The referrer spam filter has moved from the
referrer_urls_spam
INI option (inglobal.ini.php
) to a separate package (see https://github.com/matomo-org/referrer-spam-blacklist).
- The deprecated method
Period::factory()
has been removed. UsePeriod\Factory
instead. - The deprecated method
Config::getConfigSuperUserForBackwardCompatibility()
has been removed. - The deprecated methods
MenuAdmin::addEntry()
andMenuAdmin::removeEntry()
have been removed. UsePiwik\Plugin\Menu
instead. - The deprecated methods
MenuTop::addEntry()
andMenuTop::removeEntry()
have been removed. UsePiwik\Plugin\Menu
instead. - The deprecated method
SettingsPiwik::rewriteTmpPathWithInstanceId()
has been removed. - The following deprecated methods from the
Piwik\IP
class have been removed, usePiwik\Network\IP
instead:sanitizeIp()
sanitizeIpRange()
P2N()
N2P()
prettyPrint()
isIPv4()
long2ip()
isIPv6()
isMappedIPv4()
getIPv4FromMappedIPv6()
getIpsForRange()
isIpInRange()
getHostByAddr()
API
classes should no longer have a protected constructor. Classes with a protected constructor will generate a notice in the logs and should expose a public constructor instead.- Update classes should not declare static
getSql()
andupdate()
methods anymore. It is still supported to use those, but developers should instead override theUpdates::getMigrationQueries()
andUpdates::doUpdate()
instance methods.
API
classes can now use dependency injection in their constructor to inject other instances.
- There is now a command
core:purge-old-archive-data
that can be used to manually purge temporary, error-ed and invalidated archives from one or more archive tables. - There is now a command
usercountry:attribute
that can be used to re-attribute geolocated location data to existing visits and conversions. If you have visits that were tracked before setting up GeoIP, you can use this command to add location data to them.
- The event
User.getLanguage
has been removed. - The following deprecated event has been removed:
TaskScheduler.getScheduledTasks
- Special handling for operating system
Windows
has been removed. Like other operating systems all versions will now only be reported asWindows
with versions likeXP
,7
,8
, etc. - Reporting for operating systems has been adjusted to report information according to browser information. Visitor details now contain:
operatingSystemName
,operatingSystemIcon
,operatingSystemCode
andoperatingSystemVersion
- The following methods have been deprecated in favor of the new
Piwik\Intl
component:Piwik\Common::getContinentsList()
: useRegionDataProvider::getContinentList()
insteadPiwik\Common::getCountriesList()
: useRegionDataProvider::getCountryList()
insteadPiwik\Common::getLanguagesList()
: useLanguageDataProvider::getLanguageList()
insteadPiwik\Common::getLanguageToCountryList()
: useLanguageDataProvider::getLanguageToCountryList()
insteadPiwik\Metrics\Formatter::getCurrencyList()
: useCurrencyDataProvider::getCurrencyList()
instead
- The
Piwik\Translate
class has been deprecated in favor ofPiwik\Translation\Translator
. - The
core:plugin
console has been deprecated in favor of the newplugin:list
,plugin:activate
andplugin:deactivate
commands - The following classes have been deprecated:
Piwik\TaskScheduler
: usePiwik\Scheduler\Scheduler
insteadPiwik\ScheduledTask
: usePiwik\Scheduler\Task
instead
- The API method
UserSettings.getLanguage
is deprecated and will be removed from May 1st 2015. UseUserLanguage.getLanguage
instead - The API method
UserSettings.getLanguageCode
is deprecated and will be removed from May 1st 2015. UseUserLanguage.getLanguageCode
instead - The
Piwik\Registry
class has been deprecated in favor of using the container:Registry::get('auth')
should be replaced withStaticContainer::get('Piwik\Auth')
Registry::set('auth', $auth)
should be replaced withStaticContainer::getContainer()->set('Piwik\Auth', $auth)
- You can now generate UI / screenshot tests using the command
generate:test
- During UI tests we do now add a CSS class to the HTML element called
uiTest
. This allows you do hide content when screenshots are captured.
- A new command (core:fix-duplicate-log-actions) has been added which can be used to remove duplicate actions and correct references to them in other tables. Duplicates were caused by this bug: #6436
- Updated AngularJS from 1.2.26 to 1.2.28
- Updated piwik/device-detector from 2.8 to 3.0
- UI specs were moved from
tests/PHPUnit/UI
totests/UI
. We also moved the UI specs directly into the Piwik repository meaning the piwik-ui-tests repository contains only the expected screenshots from now on. - There is a new command
development:sync-system-test-processed
for core developers that allows you to copy processed test results from travis to your local dev environment.
- API responses containing visitor information will no longer contain the fields
screenType
andscreenTypeIcon
as those reports have been completely removed - os, browser and browser plugin icons are now located in the DevicesDetection and DevicePlugins plugin. If you are not using the Reporting or Metadata API to get the icon locations please update your paths.
- The deprecated method
Piwik\SettingsPiwik::rewriteTmpPathWithHostname()
has been removed. - The following events have been removed:
Log.formatFileMessage
Log.formatDatabaseMessage
Log.formatScreenMessage
- These events have been removed as Piwik now uses the Monolog logging library. Learn more.
- The event
Log.getAvailableWriters
has been removed: to add custom log backends, you now need to configure Monolog handlers - The INI options
log_only_when_cli
andlog_only_when_debug_parameter
have been removed
- We added the
symfony/var-dumper
library allowing you to better print any arbitrary PHP variable viadump($var1, $var2, ...)
. - Piwik now uses Monolog as a logger.
- The tracker proxy (previously in
misc/proxy-hide-piwik-url/
) has been moved to a separate repository: https://github.com/matomo-org/tracker-proxy.
- Some duplicate reports from UserSettings plugin have been removed. Widget URLs for those reports will still work till May 1st 2015. Please update those to the new reports of DevicesDetection plugin.
- The API method
UserSettings.getBrowserVersion
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getBrowserVersions
instead - The API method
UserSettings.getBrowser
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getBrowsers
instead - The API method
UserSettings.getOSFamily
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getOsFamilies
instead - The API method
UserSettings.getOS
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getOsVersions
instead - The API method
UserSettings.getMobileVsDesktop
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getType
instead - The API method
UserSettings.getBrowserType
is deprecated and will be removed from May 1st 2015. UseDevicesDetection.getBrowserEngines
instead - The API method
UserSettings.getResolution
is deprecated and will be removed from May 1st 2015. UseResolution.getResolution
instead - The API method
UserSettings.getConfiguration
is deprecated and will be removed from May 1st 2015. UseResolution.getConfiguration
instead - The API method
UserSettings.getPlugin
is deprecated and will be removed from May 1st 2015. UseDevicePlugins.getPlugin
instead - The API method
UserSettings.getWideScreen
has been removed. UseUserSettings.getScreenType
instead. Piwik\SettingsPiwik::rewriteTmpPathWithInstanceId()
has been deprecated. Instead of hardcoding thetmp/
path everywhere in the codebase and then callingrewriteTmpPathWithInstanceId()
, developers should get thepath.tmp
configuration value from the DI container (e.g.StaticContainer::getContainer()->get('path.tmp')
).- The method
Piwik\Log::setLogLevel()
has been deprecated - The method
Piwik\Log::getLogLevel()
has been deprecated
- The HTTP Tracker API does now respond with a HTTP 400 instead of a HTTP 500 in case an invalid
idsite
is used
- New URL parameter
send_image=0
in the HTTP Tracking API to receive a HTTP 204 response code instead of a GIF image. This improves performance and can fix errors if images are not allowed to be obtained directly (eg Chrome Apps).
core:plugin list
lists all plugins currently activated in Piwik.
- Development related console commands are only available if the development mode is enabled. To enable the development mode execute
./console development:enable
. - The command
php console core:update
does no longer have a parameter--dry-run
. A dry run is now executed by default followed by a question whether one actually wants to execute the updates. To skip this confirmation step one can use the--yes
option.
- Most methods of
Piwik\IP
have been deprecated in favor of the new piwik/network component. - The file
tests/PHPUnit/phpunit.xml
is no longer needed in order to run tests and we suggest to delete it. The test configuration is now done automatically if possible. In case the tests do no longer work check out the[tests]
section inconfig/global.ini.php
- Code for manipulating IP addresses has been moved to a separate standalone component: piwik/network. Backward compatibility is kept in Piwik core.
- Updated AngularJS from 1.2.25 to 1.2.26
- Updated jQuery from 1.11.0 to 1.11.1
- The Auth interface has been modified, existing Auth implementations will have to be modified. Changes include:
- The initSession method has been moved. Since this behavior must be executed for every Auth implementation, it has been put into a new class: SessionInitializer. If your Auth implementation implements its own session logic you will have to extend and override SessionInitializer.
- The following methods have been added: setPassword, setPasswordHash, getTokenAuthSecret and getLogin.
- Clarifying semantics of each method and what they must support and can support.
- Read the documentation for the Auth interface to learn more.
- The
Piwik\Unzip\*
classes have been extracted out of the Piwik repository into a separate component named Decompress.Piwik\Unzip
has not moved, it is kept for backward compatibility. If you have been using that class, you don't need to change anything.- The
Piwik\Unzip\*
classes (Tar, PclZip, Gzip, ZipArchive) have moved to thePiwik\Decompress\*
namespace (inside the new repository). Piwik\Unzip\UncompressInterface
has been moved and renamed toPiwik\Decompress\DecompressInterface
(inside the new repository).
- The
Piwik::setUserHasSuperUserAccess
method is deprecated, instead use Access::doAsSuperUser. This method will ensure that super user access is properly rescinded after the callback finishes. - The class
\IntegrationTestCase
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\TestCase\SystemTestCase
instead. - The class
\DatabaseTestCase
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\TestCase\IntegrationTestCase
instead. - The class
\BenchmarkTestCase
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\TestCase\BenchmarkTestCase
instead. - The class
\ConsoleCommandTestCase
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\TestCase\ConsoleCommandTestCase
instead. - The class
\FakeAccess
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\Mock\FakeAccess
instead. - The class
\Piwik\Tests\Fixture
is deprecated and will be removed from February 6th 2015. Use\Piwik\Tests\Framework\Fixture
instead. - The class
\Piwik\Tests\OverrideLogin
is deprecated and will be removed from February 6ths 2015. Use\Piwik\Framework\Framework\OverrideLogin
instead.
- The pivotBy and related query parameters can be used to pivot reports by another dimension. Read more about the new query parameters here.
- Updated AngularJS from 1.2.13 to 1.2.25
generate:angular-directive
lets you easily generate a template for a new angular directive for any plugin.
- Piwik 2.8.0 now requires PHP >= 5.3.3.
- If you use an older PHP version, please upgrade now to the latest PHP so you can enjoy improvements and security fixes in Piwik.
- Several APIs will now expose a new metric
nb_users
which measures the number of unique users when a User ID is set. - New APIs have been added for Content Tracking feature: Contents.getContentNames, Contents.getContentPieces
- The
Piwik\Menu\MenuAbstract::add()
method is deprecated in favor ofaddItem()
. Read more about this here: #6140. We do not plan to remove the deprecated method before Piwik 3.0.
- It is now easier to generate the URL for a menu item see #6140, urlForDefaultAction(), urlForAction(), urlForModuleAction()
core:clear-caches
Lets you easily delete all caches. This command can be useful for instance after updating Piwik files manually.
- The
'json'
API format is considered deprecated. We ask all new code to use the'json2'
format. Eventually when Piwik 3.0 is released the'json'
format will be replaced with'json2'
. Differences in the json2 format include:- A bug in JSON formatting was fixed so API methods that return simple associative arrays like
array('name' => 'value', 'name2' => 'value2')
will now appear correctly as{"name":"value","name2":"value2"}
in JSON API output instead of[{"name":"value","name2":"value2"}]
. API methods like SitesManager.getSiteFromId & UsersManager.getUser are affected.
- A bug in JSON formatting was fixed so API methods that return simple associative arrays like
- If an API returns an indexed array, it is now possible to use
filter_limit
andfilter_offset
. This was before only possible if an API returned a DataTable. - The Live API now returns only visitor information of activated plugins. So if for instance the Referrers plugin is deactivated a visitor won't contain any referrers related properties. This is a bugfix as the API was crashing before if some core plugins were deactivated. Affected methods are for instance
getLastVisitDetails
orgetVisitorProfile
. If all core plugins are enabled as by default there will be no change at all except the order of the properties within one visitor.
core:run-scheduled-tasks
lets you run all scheduled tasks due to run at this time. Useful for instance when testing tasks.
- We removed our own autoloader that was used to load Piwik files in favor of the composer autoloader which we already have been using for some libraries. This means the file
core/Loader.php
will no longer exist. In case you are using Piwik from Git make sure to runphp composer.phar self-update && php composer.phar install
to make your Piwik work again. Also make sure to no longer includecore/Loader.php
in case it is used in any custom script. - We do no longer store the list of plugins that are used during tracking in the config file. They are dynamically detect instead. The detection of a tracker plugin works the same as before. A plugin has to either listen to any
Tracker.*
orRequest.initAuthenticationObject
event or it has to define dimensions in order to be detected as a tracker plugin.
- Javascript Tracking API: if you are using
getCustomVariable
function to access custom variables values that were set on previous page views, you now must also callstoreCustomVariablesInCookie
before the first call totrackPageView
. Read more about Javascript Tracking here. - The settings API will receive the actual entered value and will no longer convert characters like
&
to&
. If you still want this behavior - for instance to prevent XSS - you can define a filter by setting thetransform
property like this:$setting->transform = function ($value) { return Common::sanitizeInputValue($value); }
- Config setting
disable_merged_assets
moved fromDebug
section toDevelopment
. The updater will automatically change the section for you. API.getRowEvolution
will throw an exception if a report is requested that does not have a dimension, for instanceVisitsSummary.get
. This is a fix as an invalid format was returned before see #5951MultiSites.getAll
returns from now on always an array of websites. In the past it returned a single object and it didn't contain all properties in case only one website was found which was a bug see #5987
The following events are considered as deprecated and the new structure should be used in the future. We have not scheduled when those events will be removed but probably in Piwik 3.0 which is not scheduled yet and won't be soon. New features will be added only to the new classes.
API.getReportMetadata
,API.getSegmentDimensionMetadata
,Goals.getReportsWithGoalMetrics
,ViewDataTable.configure
,ViewDataTable.getDefaultType
: use Report class instead to define new reports. There is an updated guide as well Part1WidgetsList.addWidgets
: use Widgets class instead to define new widgetsMenu.Admin.addItems
,Menu.Reporting.addItems
,Menu.Top.addItems
: use Menu class insteadTaskScheduler.getScheduledTasks
: use Tasks class instead to define new tasksTracker.recordEcommerceGoal
,Tracker.recordStandardGoals
,Tracker.newConversionInformation
: use Conversion Dimension class insteadTracker.existingVisitInformation
,Tracker.newVisitorInformation
,Tracker.getVisitFieldsToPersist
: use Visit Dimension class insteadViewDataTable.addViewDataTable
: This event is no longer needed. Visualizations are automatically discovered if they are placed within aVisualizations
directory inside the plugin.
As a plugin developer you might want to reuse existing translation keys. You can now find all available translations and translation keys by opening the page "Settings => Development:Translation search" in your Piwik installation. Read more about internationalization here.
It is now possible to use the filter_sort_column
parameter when requesting Live.getLastVisitDetails
. For instance &filter_sort_column=visitCount
.
We are using @since
annotations in case we are introducing new API's to make it easy to see in which Piwik version a new method was added. This information is now displayed in the Classes API-Reference.
- Report to add a new report
- Action Dimension to add a dimension that tracks action related information
- Visit Dimension to add a dimension that tracks visit related information
- Conversion Dimension to add a dimension that tracks conversion related information
- Dimension to add a basic non tracking dimension that can be used in
Reports
- Widgets to add or modfiy widgets
- These Menu classes got new methods that make it easier to add new items to a specific section
- MenuAdmin to add or modify admin menu items.
- MenuReporting to add or modify reporting menu items
- MenuUser to add or modify user menu items
- Tasks to add scheduled tasks
generate:theme
lets you easily generate a new theme and customize colors, see the Theming guidegenerate:update
lets you generate an update filegenerate:report
lets you generate a reportgenerate:dimension
lets you enhance the tracking by adding new dimensionsgenerate:menu
lets you generate a menu class to add or modify menu itemsgenerate:widgets
lets you generate a widgets class to add or modify widgetsgenerate:tasks
lets you generate a tasks class to add or modify tasksdevelopment:enable
lets you enable the development mode which will will disable some caching to make code changes directly visible and it will assist developers by performing additional checks to prevent for instance typos. Should not be used in production.development:disable
lets you disable the development mode
Find the general Matomo Changelogs for each release at matomo.org/changelog