Two-Script Tracker Demo (Configuration-Based)

This version demonstrates tracking clicks without modifying the HTML, using a configuration map inside script.js.

Key Change: We no longer use data-track-click. Instead, script.js contains a list of CSS selectors to watch. This is ideal when you cannot edit the page's HTML.

Trackable Buttons

Click the buttons below. The script is configured to watch for their unique attributes (`data-element` and `id`) and fire tracking events accordingly.

Track via [data-element] Track via #id

Trackable Forms

This username already exists
E-mail already exists