Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources, including the Sites Manager. Specifically, for the 'Sites Manager' resource and 'Add Site' operation, it allows users to add a new site to their Matomo instance by sending the appropriate API request with user-defined query parameters and request body. This is useful for automating site management tasks such as adding new websites for tracking in Matomo.

Use Case Examples

  1. Automatically add new websites to Matomo for tracking when they are created in your system.
  2. Batch add multiple sites to Matomo using workflow automation.

Properties

Name Meaning
Query Parameters Key-value pairs of query parameters to customize the API request for adding a site. These include various site settings and options such as site name, URLs, timezone, currency, and many other configuration options supported by Matomo's Sites Manager API.
Request Body JSON object representing the request body to send with the API call when adding a site. This can include detailed site configuration data as required by the Matomo API.

Output

JSON

  • json - The JSON response from the Matomo API after adding a site, containing details of the newly added site or status information.

Dependencies

  • Matomo API credentials (domain URL and authentication token) are required to authenticate requests.

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token credentials are correctly configured and provided; missing these will cause the node to throw an error.
  • Verify that the query parameters and request body JSON are correctly formatted and include all required fields for the 'Add Site' operation in Matomo.
  • Check the Matomo API documentation for the correct usage of parameters and required permissions to add a site.
  • If the API returns an error, inspect the error message and stack trace provided by the node for debugging.

Links

Discussion