tagContent

Tags a BrowserSDK:TaggableElement to be tracked as ContentContext.

tagContent = (parameters: {
id: string,
options?: TagLocationOptions,
onError?: TrackerErrorHandlerCallback
}) => TagLocationReturnValue
info

This attribute directive builds on top of BrowserSDK:tagContent

Parameters

typedefault value
requiredidstring
optionaloptionsBrowserSDK:TagLocationOptions
optionalonErrorBrowserSDK:TrackerErrorHandlerCallbackTrackerConsole.error

Returns

BrowserSDK:TagLocationReturnValue

Usage example

<section [tagContent]="{ id: 'layout' }">
<div [tagContent]="{ id: 'section' }">
...
</div>
</section>