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 'Visit Time' resource and the 'Get Visit Information Per Server Time' operation, it fetches visit data categorized by server time for a specified site and period. This is useful for analyzing visitor behavior patterns relative to server time, such as peak visit hours or server-time-based visit distributions.

Use Case Examples

  1. A marketing analyst wants to understand the distribution of website visits by server time to optimize server load and marketing campaigns.
  2. A website administrator needs to fetch visit information per server time to generate reports on user activity during different hours of the day.

Properties

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

Output

JSON

  • data - The JSON response data from the Matomo API containing visit information per server time

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the query parameters are correctly formatted and valid for the selected operation to prevent API request failures.
  • If the API response is empty or returns a 204 status, check if the specified site ID and period have data available in Matomo.
  • Network connectivity issues may cause request failures; ensure the node can reach the Matomo server URL.
  • Check for permission issues if the API returns access denied errors; the API token must have sufficient permissions for the requested data.

Links

Discussion