Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics operations based on the selected resource and operation. Specifically, for the 'Visits Summary' resource and the 'Get Sum Visits Length' operation, it retrieves the total time spent during visits for a specified site and period. This is useful for analyzing user engagement by understanding how long visitors stay on a website. The node supports a wide range of query parameters to customize the API request, allowing users to filter and specify the data they want to retrieve.

Use Case Examples

  1. A marketing analyst wants to know the total duration of visits to their website over the last month to assess user engagement.
  2. A website owner wants to compare the total visit length between two different periods to evaluate the impact of recent changes on user behavior.

Properties

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

Output

JSON

  • 0 - The JSON response from the Matomo API containing the total visits length data and related metrics.

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 query parameters are correctly formatted and valid according to Matomo API documentation to avoid request failures.
  • If the API returns no content, the node outputs a status code 204 message indicating no data was found for the given parameters.

Links

Discussion