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
type | default value | ||
---|---|---|---|
required | id | string | |
optional | options | BrowserSDK:TagLocationOptions | |
optional | onError | BrowserSDK:TrackerErrorHandlerCallback | TrackerConsole.error |
Returns
BrowserSDK:TagLocationReturnValue
Usage example
<section [tagContent]="{ id: 'layout' }">
<div [tagContent]="{ id: 'section' }">
...
</div>
</section>