advanced_dom_changed
The advanced_dom_changed event is published when the DOM has been changed in any way, such as an element being added, removed, or modified.
This event is limited on checkout to stores on the Shopify Plus plan.
This event is limited on checkout to stores on the Shopify Plus plan.
Anchor to propertiesProperties
- Anchor to clientIdclientIdclientIdstringstring
The client-side ID of the customer, provided by Shopify
- Anchor to datadatadataPixelEventsAdvancedDomChangedDataPixelEventsAdvancedDomChangedData
- Anchor to idididstringstring
The ID of the customer event
- Anchor to namenamenamestringstring
The name of the customer event.
- Anchor to seqseqseqnumbernumber
The sequence index number of the event.
- Anchor to timestamptimestamptimestampstringstring
The timestamp of when the customer event occurred, in ISO 8601 format
- Anchor to typetypetypeEventType.AdvancedDomEventType.AdvancedDom
PixelEventsAdvancedDomChangedData
- addedFragments
Array of `DomFragment` added to the document. Each `DomFragment` represents a sub-tree of the document. Use the `parentSerializationId` and the `prevSiblingSerializationId` to reconstruct the document.
DomFragment[] - modifiedNodes
Array of `DomNode` that have had their attributes changed. Use the `serializationId` of each to find it and update your own representation of the document.
DomNode[] - removedNodes
Array of `DomNode` removed from the document. Use the `serializationId` of each to find it and remove it from your own representation of the document.
DomNode[]
DomFragment
Representation of a sub-tree of the host document.
- children
Array of `DomFragment` representing children of the parent `DomFragment`.
DomFragment[] - node
The node object of the `DomFragment`.
DomNode - parentSerializationId
The serialization ID of the parent node. -1 if there are no parents.
number - prevSiblingSerializationId
The serialization ID of the previous sibling node. -1 if there are no previous siblings.
number
DomNode
Representation of a node in the document.
- attributes
A dictionary of attributes of an element. Only available on element nodes.
{ [key: string]: string; } - checked
The checked state of an element. Only available on input element nodes.
boolean - clientRect
The coordinates of the element in the viewport. Only available on element nodes.
ClientRect - nodeType
The type of node based on the native DOM API's [`nodeType`](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType) values. It distinguishes different kind of nodes from each other, such as elements, text and comments.
number - scroll
The scroll coordinates of the element in the viewport. Only available on element nodes.
ClientRect - serializationId
The serialization id of the node. This is a unique identifier for the node based on its stable reference in the host DOM tree.
number - tagName
A string representation of the tag of a node. Only available on element nodes.
string - textContent
The text content of an element. Only available on text nodes.
string
ClientRect
An object that contains data about an element coordinates in a viewport.
- height
number - width
number - x
number - y
number
EventType
- AdvancedDom
advanced-dom - Custom
custom - Dom
dom - Meta
meta - Standard
standard