Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to user country data and other Matomo resources. Specifically, for the 'User Country' resource and 'Get Country' operation, it fetches country data for a site and period from Matomo. The node is useful for analytics workflows where geographic user data is needed, such as generating reports on user distribution by country or analyzing traffic sources by location.

Use Case Examples

  1. Fetch country data for a website to analyze visitor distribution by country.
  2. Retrieve user country metrics for a specific date range to understand geographic trends.

Properties

Name Meaning
Query Parameters Parameters to customize the API request, such as filtering by date, site ID, or other Matomo-specific options.

Output

JSON

  • json - The JSON response from the Matomo API containing user country data or other requested information.

Dependencies

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

Troubleshooting

  • Ensure Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause errors.
  • Verify that the 'resource' and 'operation' parameters are correctly set to 'User Country' and 'Get Country' 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 malformed, verify the Matomo server availability and API endpoint correctness.

Links

Discussion