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 'User Country' resource and the 'Get Number Of Distinct Countries' operation, it retrieves the count of distinct countries visiting a site. This node is useful for users who want to fetch detailed analytics data from Matomo, such as user country statistics, and can be applied in scenarios like monitoring geographic diversity of website visitors.

Use Case Examples

  1. Fetch the number of distinct countries visiting a website to analyze geographic reach.
  2. Retrieve user country data to tailor marketing campaigns based on visitor locations.

Properties

Name Meaning
Query Parameters Collection of optional parameters to filter or specify the API request, such as date, period, site ID, and other Matomo-specific filters.

Output

JSON

  • json - The JSON response from the Matomo API containing the requested analytics data, such as the number of distinct countries.

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured; missing these will cause errors.
  • Verify that the query parameters are correctly formatted and valid for the selected operation.
  • Check network connectivity to the Matomo instance to avoid request failures.
  • If the API returns an error, review the error message for details and adjust parameters accordingly.

Links

Discussion