Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations related to website analytics and management. Specifically, for the 'Sites Manager' resource and 'Get Javascript Tag' operation, it retrieves the JavaScript tracking tag for a specified site. This is useful for embedding Matomo tracking code into websites to enable visitor tracking and analytics. Users can specify various query parameters to customize the request.

Use Case Examples

  1. Retrieve the JavaScript tracking tag for a specific website to embed in the site's HTML for visitor tracking.
  2. Fetch the tracking tag with custom query parameters to adjust tracking behavior or data collection.

Properties

Name Meaning
Query Parameters A collection of optional parameters to customize the API request, such as site ID, environment, and other tracking options.

Output

JSON

  • javascriptTag - The JavaScript tracking tag code for the specified site, used to embed Matomo tracking on web pages.

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 site ID and other query parameters are valid and exist in the Matomo instance to prevent API errors.
  • Check network connectivity and Matomo server availability if requests fail or time out.
  • If the response is empty or unexpected, confirm that the requested operation and resource are supported and that the API endpoint is correct.

Links

Discussion