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
type | default value | ||
---|---|---|---|
required | id | string | |
optional | options | BrowserSDK:TagLocationOptions | { trackClicks: true } |
optional | onError | BrowserSDK:TrackerErrorHandlerCallback | TrackerConsole.error |
Returns
BrowserSDK:TagLocationReturnValue
Events
Unless customized via the options
parameter, automatically triggers:
Usage example
<button [tagPressable]="{ id: 'button-id' }">Click Me!</button>