Skip to main content

TaggingAttribute

Location Taggers and tagChildren decorate Taggable Elements by adding Custom data-* Attributes to them.

Location TaggerstagChildrenShort nameDOM dataset attribute name
requiredneverelementIddata-objectiv-element-id
requirednevercontextdata-objectiv-context
optionalneverparentElementIddata-objectiv-parent-element-id
optionalnevertrackClicksdata-objectiv-track-clicks
optionalnevertrackBlursdata-objectiv-track-blurs
optionalnevertrackVisibilitydata-objectiv-track-visibility
optionalnevervalidatedata-objectiv-validate
neveralwaystagChildrendata-objectiv-tag-children
automaticautomatictrackeddata-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 (eg: React Portals). This allows specifying a parent Tagged Element.

TaggingAttribute.trackClicks

Whether to attach Event Listeners to the Tagged Element to automatically trigger trackClick on click.

TaggingAttribute.trackBlurs

Whether to attach Event Listeners to the Tagged Element to automatically track trackInputChange events on blur.

TaggingAttribute.trackVisibility

Whether to monitor the Tagged Element to automatically track either trackSectionHidden or trackSectionVisible 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 Tagged Elements Observer when this Tagged Element is registered as being tracked.