Matomo
Matomo, formerly Piwik, is an open source web analytics application to track online visits to one or more websites and display reports on these visits for analysis. Using this destination you can implement server-side tracking using Matomo Tracking HTTP API.
Key features
The Matomo destination provides the following key features:
Events structure: our Events reference covers Matomo's request structure, meaning that your data is properly bridged to the expected fields in an optimized way.
Prebuilt mappings: data mapping for event-based destinations happens automatically, which simplifies user inputs.
Automatic hashing: information is automatically hashed matching partner specifications.
Custom events and properties: you can freely push custom events and properties based on your specific needs.
Support for multi-item data: information included in the item array is bridged to Matomo.
Destination setup
Matomo recommends using custom parameters instead of custom variables as the latter are deprecated. The data for some Matomo optional fields will not be available in your app / technical layer which is expected, but you should provide as much information as you can.
Configuration
Settings | Description |
---|---|
|
Your server domain as provided by Matomo. (E.g. for https:// |
|
Your site identifier as provided by Matomo. More details are available following this LINK. |
| Cookie name holding a few details about the user such as the unique visitor identifier. It normally starts with the string |
| The unique visitor identifier value if you need to pass it without a cookie. |
| You can bridge your selected user identifier for logged users. More details are available following this LINK. |
| Map your Matomo custom variables by setting their field names in |
| Map your Matomo custom parameters by setting their field names in |
| Map your Matomo goals by setting the |
| An authorization token is required to send additional parameters. Going to Matomo's interface, It's recommend to create a user specifically for accessing the "Tracking API", and give the user only write permission on the website(s). More details on the additional parameters are available following this LINK. |
[1] Using "dots" (".") you can navigate deeper to the specific field you want to get the value of. See Events reference for more details on the standard field names by event. You can also freely set custom fields: there are no boundaries.
Field mappings
Matomo propertye_c
is statically set withca_event
.
Ecommerce parameters are passed for incoming purchase events.
Commanders Act Properties | Matomo Properties |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[[ |
|
|
|
|
|
|
|
|
|
|
|
|
|
[1] If a cookie is not provided, this destination searches for a cookie name containing the string_pk_id
to retrieve the visitor identifier from it. Alternatively, you can pass the value using a datalayer property. See Configuration for more details.
[2] Depending on the drop-down selection (SeeUser Identifier
inConfiguration
), a specific Commanders Act property is used.
[3] Based on your configuration (SeeMatomo Goals
in theConfiguration
), a specific identifier is set in this field. Withpurchase
events,0
is bridged as identifier.
[4] The resulting array is encoded.
Last updated