PageSourceSearch

https://donaldvbrown.ca/files/site/js/GoogleTagManagerClickHandler.js?v=1

js donaldvbrown.ca collected 2026-09-29 03:46:15 UTC 717 bytes, 25 lines download raw bytes

1YUI().use("event", "node", function() {
2    document.querySelector("body").addEventListener("click", elementClicked, true);
3
4    function elementClicked(ev) {
5        if (!dataLayer) {
6            return;
7        }
8
9        var link = ev.target;
10        var eventType = link.getAttribute("data-ft-gtm-event");
11
12        if (!eventType) {
13            return;
14        }
15
16        var label = link.getAttribute("data-ft-gtm-label") || link.textContent.trim();
17
18        dataLayer.push({
19            'event': eventType,
20            'category': link.getAttribute("data-ft-gtm-category"),
21            'action': link.getAttribute("data-ft-gtm-action"),
22            'label': label
23        });
24    }
25});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.