1. A method for tracking events associated with a web document on a client device, the method comprising performing, by the client device: receiving the web document at the client device; receiving a capture agent in conjunction with a delivery of the web document, the capture agent configured to execute on the client device; parsing the web document to generate a Document Object Model (DOM) tree, the DOM tree including a plurality of nodes; identifying, by the capture agent, a DOM tree modification resulting in a modified DOM tree by monitoring the DOM tree for addition of nodes to the DOM tree, removal of nodes from the DOM tree, and modification of nodes in the DOM tree, the DOM tree modification containing a first node modification associated with a first node and a second node modification associated with a second node; determining, by the capture agent, the first node modification and the second node modification to be an overlapping modification based on the first node being an ancestor of the second node in the DOM tree, the first node modification targeting a subtree of the DOM tree including the second node; determining, by the capture agent, first identification information for uniquely identifying the first node; generating, by the capture agent, an event record for the DOM tree modification, the event record including the first identification information for uniquely identifying the first node and the first node modification, the event record suppressing duplicate information by not including the second node modification based on the determination that the first node modification and the second node modification are the overlapping modification; and transmitting, from the capture agent, the event record to a server-side web session storage engine, wherein the server-side web session storage engine uses a server-side captured DOM tree of the web document, the first identification information, and the first node modification to generate the modified DOM tree.
1. A method for tracking events associated with a web document on a client device, the method comprising performing, by the client device: receiving the web document at the client device; receiving a capture agent in conjunction with a delivery of the web document, the capture agent configured to execute on the client device; parsing the web document to generate a Document Object Model (DOM) tree, the DOM tree including a plurality of nodes; identifying, by the capture agent, a DOM tree modification resulting in a modified DOM tree by monitoring the DOM tree for addition of nodes to the DOM tree, removal of nodes from the DOM tree, and modification of nodes in the DOM tree, the DOM tree modification containing a first node modification associated with a first node and a second node modification associated with a second node; determining, by the capture agent, the first node modification and the second node modification to be an overlapping modification based on the first node being an ancestor of the second node in the DOM tree, the first node modification targeting a subtree of the DOM tree including the second node; determining, by the capture agent, first identification information for uniquely identifying the first node; generating, by the capture agent, an event record for the DOM tree modification, the event record including the first identification information for uniquely identifying the first node and the first node modification, the event record suppressing duplicate information by not including the second node modification based on the determination that the first node modification and the second node modification are the overlapping modification; and transmitting, from the capture agent, the event record to a server-side web session storage engine, wherein the server-side web session storage engine uses a server-side captured DOM tree of the web document, the first identification information, and the first node modification to generate the modified DOM tree. 2. The method of claim 1 , wherein the event includes a user interaction event associated with the web document.