Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Web Containers Variable → Create Web Datalayer Variables

AI-generated

Overview

This node interacts with the Commanders Act API to create web datalayer variables within web containers. It is useful for managing and organizing data variables that are used in web analytics and tag management systems. For example, a user can create new datalayer variables to track specific user interactions or custom data points on a website.

Use Case Examples

  1. Creating a new web datalayer variable to capture user login status.
  2. Adding a datalayer variable to track product category views on an e-commerce site.

Properties

Name Meaning
Query Parameters Optional parameters to customize the API request, such as filters, pagination, sorting, and other query options.
Request Body JSON object containing the details of the web datalayer variable to be created.

Output

JSON

  • json - The JSON response from the Commanders Act API representing the created web datalayer variable or the result of the API call.

Dependencies

  • Commanders Act API with API token and site ID credentials

Troubleshooting

  • Ensure that the API credentials (site ID and token) are correctly configured and provided; missing credentials will cause the node to throw an error.
  • Verify that the required parameters such as the request body are correctly formatted as JSON; invalid JSON will cause the API request to fail.
  • Check that the API endpoint URL is correctly constructed based on the resource and operation; missing required IDs will cause errors.
  • Common error messages include missing required IDs for specific operations, which can be resolved by providing the necessary IDs in the node parameters.

Discussion