Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node interacts with the Matomo API to perform various operations related to the 'Annotation' resource, specifically the 'Save Annotation' operation. It allows users to update existing annotations by sending a request to the Matomo API with specified query parameters and a JSON request body. This is useful for managing and updating annotations in Matomo analytics, such as adding notes or modifying existing annotation details for a given site and date.

Use Case Examples

  1. Updating an annotation's note or description for a specific site and date in Matomo analytics.
  2. Modifying the details of an existing annotation to reflect new information or corrections.

Properties

Name Meaning
Query Parameters Key-value pairs used to specify parameters for the API request, such as annotation ID, site ID, date, and other relevant filters or options.
Request Body A JSON object containing the data to update the annotation, such as the note text, date, and other annotation attributes.

Output

JSON

  • json - The JSON response from the Matomo API after saving the annotation, which may include the updated annotation details or status information.

Dependencies

  • Matomo API authentication token and domain URL

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured and provided, as missing credentials will cause an error.
  • Verify that the query parameters and request body are correctly formatted and include all required fields for the 'Save Annotation' operation.
  • Check the API endpoint URL and method to ensure they match the Matomo API specifications for saving annotations.
  • Handle API errors gracefully by inspecting the error message and stack trace provided in the node error output.

Links

Discussion