Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to the 'Sites Manager' resource, specifically the 'Get Search Category Parameters Global' operation among many others. It allows users to query Matomo's analytics data and site management features by specifying the resource, operation, and query parameters. The node constructs the appropriate API request URL based on user input, sends the request to the Matomo API, and returns the response data. This is useful for automating data retrieval and management tasks in Matomo, such as fetching global search category parameters, managing sites, and accessing analytics reports.

Use Case Examples

  1. Fetch global search category parameters for a Matomo site to analyze search behavior across all sites.
  2. Retrieve site settings or update site configurations programmatically using the Sites Manager resource.
  3. Query various analytics data points like visits, actions, or user flows by specifying different operations and parameters.

Properties

Name Meaning
Query Parameters A collection of key-value pairs representing query parameters to customize the API request. These parameters control the data returned by the Matomo API for the selected operation.

Output

JSON

  • json - The JSON response from the Matomo API containing the requested data or operation result

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the selected resource and operation are supported and correctly spelled to prevent unknown resource or operation errors.
  • Check the query parameters for correctness and completeness as invalid or missing parameters may cause the API to return errors or empty results.
  • If the API response is empty or unexpected, confirm that the Matomo instance is accessible and the API endpoint is correct.
  • Review error messages returned by the Matomo API for specific issues such as permission denied, invalid token, or resource not found, and adjust the request accordingly.

Links

Discussion