Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations related to the 'Sites Manager' resource, specifically the 'Get Sites ID From Site URL' operation among many others. It allows users to query Matomo for site IDs based on site URLs and other parameters, facilitating management and retrieval of site-related data within Matomo analytics. This node is useful for automating data retrieval and management tasks in Matomo, such as fetching site IDs for given URLs, managing site settings, and accessing site groups or alias URLs.

Use Case Examples

  1. Retrieve the site ID for a given website URL to integrate with other analytics workflows.
  2. Fetch all site IDs that match a specific URL pattern for reporting or management purposes.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as filtering by access level, date, or other site attributes.

Output

JSON

  • json - The JSON response from the Matomo API containing site IDs or other requested data

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure the Matomo domain 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.
  • Check the Matomo API documentation for the correct method names and required parameters if the node throws an 'Unknown resource' or 'Unknown operation' error.
  • If the API response is empty or unexpected, confirm that the site URL or other filters used in the query parameters exist and are accessible with the provided credentials.

Links

Discussion