analytics_custom_dimensions_get
Retrieve a specific custom dimension by its ID. Provide the dimension ID, website ID, and scope (session, event, or product) to get the dimension details.
Instructions
Get a specific custom dimension by ID.
Note: The scope parameter is required to determine which API to query.
If you don't know the scope, use analytics_custom_dimensions_list() first
to find the dimension and its scope.
Args:
dimension_id: Custom Dimension UUID
website_id: Website/App UUID
scope: Dimension scope (required for API routing):
- "session" or "event": Query standard custom dimensions API
- "product": Query product custom dimensions API
Returns:
CustomDimensionItem (for session/event) or ProductCustomDimensionItem (for product)
Raises:
RuntimeError: If dimension not found or API request fails
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dimension_id | Yes | ||
| website_id | Yes | ||
| scope | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |