tagPressable

Tags a BrowserSDK:TaggableElement to be tracked as PressableContext.

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

This attribute directive builds on top of BrowserSDK:tagPressable

Parameters

typedefault value
requiredidstring
optionaloptionsBrowserSDK:TagLocationOptions{ trackClicks: true }
optionalonErrorBrowserSDK:TrackerErrorHandlerCallbackTrackerConsole.error

Returns

BrowserSDK:TagLocationReturnValue

Events

Unless customized via the options parameter, automatically triggers:

Usage example

<button [tagPressable]="{ id: 'button-id' }">Click Me!</button>