Tracking Dynamically-Loaded Elements
Tracking Dynamically-Loaded Elements
Your site might include dynamic elements – those forms or buttons that are loaded (for example, via Ajax
) after the page has loaded. Dynamic elements should get tracked by using JavaScript Library instead of using the Event Manager. (For events in the Event Manager, we scan the page just once for trackable elements, when our script loads.)
Developers should call our trackClick
and trackSubmit
API functions after dynamic elements are loaded, so that they can be tracked correctly. Please refer to our JavaScript Library documentation for more information.
Updated almost 2 years ago