Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 786 Bytes

2012-10-19-dynamic-elements.md

File metadata and controls

15 lines (12 loc) · 786 Bytes
layout title categories summary
post
Tracking Dynamically-Loaded Elements
how-tos
How to track interactions with dynamic elements on your site.
  • Table of Contents {:toc}

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 tracked by using JavaScript API calls instead of using the Event Library. (For events in the Event Library, 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.