Type Alias: AgentContextConfig
AgentContextConfig:
object
Defines the context configuration for an AnalyticsAgent component.
Both contextType and contextTypeIdOrApiName must be provided together.
When provided as contextConfig in AgentProps, the agent runs in single-context mode and tracks only the specified component.
When contextConfig is omitted from AgentProps, the agent runs in multi-component mode and automatically tracks all embedded analytics components on the page.
contextType:
AgentContextType
Required. The type of the asset to configure the agent for.
Must be a valid AgentContextType enum value (SDM, METRIC, or DASHBOARD).
contextTypeIdOrApiName:
string
Required. The unique ID or API name of the asset to configure the agent for. This must reference an asset that exists in the same org as the agent.