Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different resources, including the 'Form' resource with the 'Add Form' operation. It allows users to add a new form for tracking with specified rules by sending a POST request to the Matomo API. This is useful for tracking form analytics such as user interactions with forms on websites.

Use Case Examples

  1. Adding a new form to Matomo for tracking user interactions on a website.
  2. Automating form analytics data collection by creating forms programmatically via the API.

Properties

Name Meaning
Query Parameters Collection of optional query parameters to customize the API request, such as filtering or specifying details for the form to add.
Request Body JSON object representing the form data and rules to be sent in the request body when adding a form.

Output

JSON

  • response - The JSON response from the Matomo API after adding the form, containing details about the created form or operation status.

Dependencies

  • Matomo API authentication token and domain

Troubleshooting

  • Ensure the Matomo API credentials (domain and auth token) are correctly set; missing credentials will cause an error.
  • Verify that the 'requestBody' JSON is correctly formatted; invalid JSON will cause request failures.
  • Check that the 'queryParameters' are valid and supported by the Matomo API for the 'formAddPost' method.
  • Handle HTTP errors or API errors gracefully; the node throws detailed errors with messages and stack traces if the API call fails.

Discussion