Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources. Specifically, for the 'Users Manager' resource and the 'Set User Preference' operation, it allows setting a specific user preference key to a given value. This is useful for managing user settings programmatically within Matomo, such as customizing user experience or preferences. The node supports a wide range of query parameters to specify the preference details.

Use Case Examples

  1. Set a user preference 'theme' to 'dark' for a specific user to customize their dashboard appearance.
  2. Update notification settings for a user by setting the 'emailMe' preference to true.

Properties

Name Meaning
Query Parameters Collection of key-value pairs representing the user preference key and value to set, along with other optional parameters to customize the request.

Output

JSON

  • json - The JSON response from the Matomo API indicating the result of the set user preference operation.

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured in the node credentials; missing these will cause an error.
  • Verify that the 'preferenceName' and 'preferenceValue' are correctly set in the query parameters; incorrect or missing keys may result in API errors.
  • Check the Matomo API documentation for the 'UsersManager.setUserPreference' method to ensure the parameters are valid and supported.

Links

Discussion