Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics and management operations. Specifically, for the 'Live' resource and 'Get Counters' operation, it retrieves visit counters for the last specified minutes for a given site. This is useful for real-time monitoring of website traffic and user activity. For example, a user can fetch live visit counts to monitor spikes in traffic or user engagement on their website.

Use Case Examples

  1. Fetch live visit counters for a website to monitor real-time traffic.
  2. Retrieve the number of active visitors in the last 30 minutes for a specific site.

Properties

Name Meaning
Query Parameters Collection of optional parameters to customize the API request, such as site ID, period, segment filters, and other Matomo-specific options.

Output

JSON

  • response - The JSON response from the Matomo API containing visit counters or other requested data.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing these will cause an error.
  • Verify that the 'resource' and 'operation' parameters are correctly set to 'Live' and 'Get Counters' respectively to avoid unknown resource errors.
  • Check that query parameters are valid and supported by the Matomo API to prevent request failures.
  • If the API response is empty or returns '204 No Content', verify that the site ID and time period parameters are correctly specified and that there is data available for the requested period.

Links

Discussion