Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various analytics and management operations. Specifically, for the 'Referrer' resource and the 'Get Number Of Distinct Campaigns' operation, it retrieves the count of distinct marketing campaigns that have referred traffic to a specified site. This is useful for marketers and analysts who want to understand the diversity of campaigns driving traffic to their websites. The node supports a wide range of query parameters to filter and customize the API request.

Use Case Examples

  1. A marketing analyst uses this node to fetch the number of distinct campaigns referring traffic to their website over a specific period, helping them evaluate campaign reach and effectiveness.
  2. A digital marketer integrates this node into an automation workflow to regularly monitor the variety of campaigns contributing to site visits, enabling timely adjustments to marketing strategies.

Properties

Name Meaning
Query Parameters Collection of optional parameters to filter and customize the API request, such as site ID, date range, segment filters, and other Matomo-specific options.

Output

JSON

  • json - The JSON response from the Matomo API containing the number of distinct campaigns or other requested data.

Dependencies

  • An API key credential for Matomo API authentication

Troubleshooting

  • Ensure the Matomo domain URL and authentication token are correctly configured in the node credentials to avoid authentication errors.
  • Verify that the query parameters are correctly formatted and valid for the Matomo API to prevent request failures.
  • Check the Matomo API endpoint and method names for typos or unsupported operations to avoid 'Unknown resource' or 'Unknown operation' errors.
  • If the API response is empty or unexpected, confirm that the site ID and date range parameters are correctly set and that data exists for the requested period.

Links

Discussion