Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically, for the 'Sites Manager' resource and the 'Set Keep URL Fragments Global' operation, it enables users to globally configure whether URL fragments (the part after '#') are retained in reports. This is useful for analytics scenarios where URL fragments carry meaningful information, such as single-page applications or tracking specific page states.

Use Case Examples

  1. A user wants to globally enable the retention of URL fragments in all site reports to better analyze user navigation patterns in a single-page application.
  2. An administrator needs to disable URL fragments globally to clean up URLs in reports for better aggregation and reporting accuracy.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, including various filters and settings relevant to the selected operation.
Request Body A JSON object representing the request payload, used for POST operations to send data to the Matomo API.

Output

JSON

  • Status Code - Indicates the HTTP status or response status when no content is returned
  • json - Parsed JSON response from the Matomo API containing the result of the operation

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly provided in the credentials; missing these will cause the node to throw an error.
  • Verify that the selected resource and operation are supported and correctly spelled; unsupported combinations will result in an error.
  • Check the format of the request body JSON for POST operations to avoid parsing errors.
  • If the API response is empty or not JSON, the node returns a status code message or raw text respectively.

Links

Discussion