Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Web Containers Variable → Get Web Datalayer Variables

AI-generated

Overview

This node interacts with the Commanders Act API to retrieve web datalayer variables from web containers. It is useful for scenarios where users need to fetch specific datalayer variables for web analytics or tag management purposes within the Commanders Act platform. For example, a user can get details of a particular datalayer variable by providing its ID or list all datalayer variables associated with a web container.

Use Case Examples

  1. Retrieve a specific web datalayer variable by its ID to inspect its configuration.
  2. List all web datalayer variables to audit or manage them within a web container.

Properties

Name Meaning
Datalayer Variable ID The unique identifier of the web datalayer variable to retrieve. Required for the 'Get Web Datalayer Variables' operation.
Query Parameters Optional query parameters to filter or modify the API request when retrieving datalayer variables, such as pagination, filtering, sorting, and other API-specific parameters.

Output

JSON

  • json - The JSON response from the Commanders Act API containing the requested web datalayer variable(s) data.

Dependencies

  • Commanders Act API credentials (API token and site ID)

Troubleshooting

  • Ensure that the Commanders Act API credentials are correctly configured and valid, as missing or invalid credentials will cause authentication errors.
  • Verify that the 'Datalayer Variable ID' is provided when using the 'Get Web Datalayer Variables' operation; otherwise, the node will throw an error indicating the missing ID.
  • Check the API request URL and query parameters for correctness if the API returns unexpected results or errors.
  • Common error messages include missing required parameters (e.g., 'Datalayer Variable ID is required') and API authentication failures. Resolving these involves providing the required parameters and verifying credentials.

Discussion