TaggingAttribute
Location Taggers and tagChildren decorate Taggable Elements by adding Custom data-* Attributes to them.
Location Taggers | tagChildren | Short name | DOM dataset attribute name |
---|---|---|---|
required | never | elementId | data-objectiv-element-id |
required | never | context | data-objectiv-context |
optional | never | parentElementId | data-objectiv-parent-element-id |
optional | never | trackClicks | data-objectiv-track-clicks |
optional | never | trackBlurs | data-objectiv-track-blurs |
optional | never | trackVisibility | data-objectiv-track-visibility |
optional | never | validate | data-objectiv-validate |
never | always | tagChildren | data-objectiv-tag-children |
automatic | automatic | tracked | data-objectiv-tracked |
TaggingAttribute.elementId
A unique identifier used internally to pinpoint a specific Tagged Element.
TaggingAttribute.context
A serialized Location Context instance.
TaggingAttribute.parentElementId
Rebuilding Locations via the DOM is not always accurate (e.g. React Portals). This allows specifying a parent Tagged Element.
TaggingAttribute.trackClicks
Whether to attach Event Listeners to the Tagged Element to automatically trigger trackPressEvent on click.
TaggingAttribute.trackBlurs
Whether to attach Event Listeners to the Tagged Element to automatically track trackInputChangeEvent events on blur.
TaggingAttribute.trackVisibility
Whether to monitor the Tagged Element to automatically track either trackHiddenEvent or trackVisibleEvent events.
TaggingAttribute.validate
A serialized TagLocationOptions.validate object to customize how validation occurs for the Tagged Element.
TaggingAttribute.tagChildren
A serialized list of ChildrenTaggingQuery objects.
TaggingAttribute.tracked
Automatically added by the Mutation Observer when this Tagged Element is registered as being tracked.