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 Languages Manager. Specifically, for the 'Set Language For User' operation under the Languages Manager resource, it allows setting the language preference for a specific user in Matomo. This is useful for customizing user experience based on language preferences. The node supports a wide range of query parameters and a JSON request body to specify the details of the API call.

Use Case Examples

  1. Setting a user's language preference to French by providing the user identifier and language code in the request body.
  2. Changing the language setting for a user to Spanish to localize the Matomo interface for that user.

Properties

Name Meaning
Query Parameters Key-value pairs for query parameters to customize the API request, such as user identifiers or language codes.
Request Body JSON object containing the details for the API request, such as the user login and the language code to set.

Output

JSON

  • response - The JSON response from the Matomo API call, which may include confirmation of the language setting or error details.

Dependencies

  • Requires Matomo API credentials including domain and authentication token.

Troubleshooting

  • Ensure that the Matomo domain and authentication token credentials are correctly configured; missing these will cause the node to throw an error.
  • Verify that the user login and language code provided in the request body are valid and exist in the Matomo system to avoid API errors.
  • Check the API method and parameters for correctness as per Matomo API documentation to prevent request failures.

Links

Discussion