Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to website analytics and management. Specifically, the 'Update Site' operation under the 'Sites Manager' resource allows users to update the settings of a specific site in Matomo. This is useful for managing site configurations such as URLs, timezone, currency, and other site-specific parameters programmatically. Practical examples include updating site details after a domain change, modifying tracking settings, or adjusting site metadata without manual intervention in the Matomo UI.

Use Case Examples

  1. Updating the timezone and currency settings of a website in Matomo.
  2. Changing the list of alias URLs for a site to ensure accurate tracking.
  3. Modifying site-level exclusions such as IPs or query parameters to refine analytics data.

Properties

Name Meaning
Query Parameters A collection of key-value pairs representing query parameters to filter or specify the API request details for the site update.
Request Body JSON object containing the request body with site settings and configurations to update the site.

Output

JSON

  • Status Code - HTTP status code or response status indicating the result of the update operation.
  • json - The JSON response from the Matomo API containing details of the updated site or confirmation of the update.

Dependencies

  • Matomo API

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly configured in the node credentials; missing these will cause authentication errors.
  • Verify that the 'idSite' parameter is correctly set to the site ID you intend to update; incorrect IDs will result in errors or no changes.
  • Check the format of the request body JSON; malformed JSON will cause the API request to fail.
  • If the API returns an error, review the error message for details on missing or invalid parameters and adjust accordingly.

Links

Discussion