Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API, allowing users to perform various operations across multiple Matomo resources. Specifically, for the 'Sites Manager' resource and the 'Set Global Excluded Referrers' operation, it enables setting global referrer hosts or patterns to be excluded from all sites tracked by Matomo. This is useful for filtering out unwanted or spammy referrer traffic globally across all tracked websites.

Use Case Examples

  1. A user wants to exclude certain referrer domains globally to prevent spam traffic from skewing analytics data.
  2. An administrator needs to update the list of referrers that should be ignored across all sites in their Matomo instance.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to customize the API request, such as filtering, pagination, or specific data attributes.
Request Body A JSON object representing the request payload, used for POST operations like setting global excluded referrers.

Output

JSON

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

Dependencies

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

Troubleshooting

  • Ensure that the Matomo domain URL and authentication token are correctly provided; missing these will cause an error.
  • Verify that the operation and resource parameters are correctly set to 'sitesManager' and 'sitesManagerSetGlobalExcludedReferrersPost' respectively to perform the intended action.
  • Check the format of the request body JSON; malformed JSON will cause the API call to fail.
  • If the API returns an error, review the error message and stack trace for details on the issue, such as permission problems or invalid parameters.

Links

Discussion