PageSourceSearch

https://www.betterbrain.com/marketing-integrations/6d6fe71172f3.js

js betterbrain.com collected 2026-09-28 08:34:22 UTC 906 bytes, 24 lines download raw bytes

1
2(function () {
3  function generateEventId() {
4    if (window.crypto && crypto.randomUUID) return crypto.randomUUID();
5    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
6      var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;
7      return v.toString(16);
8    });
9  }
10  function fireCtaEvent(el) {
11    var eventName = el.getAttribute('data-fb-event') || 'landing_cta_click';
12    var customData = {
13      content_name: el.getAttribute('data-fb-content-name') || (el.textContent || '').trim().slice(0, 100),
14      source_url: window.location.href
15    };
16    try {
17      window.fbq('trackCustom', eventName, customData, { eventID: generateEventId() });
18    } catch (e) {}
19  }
20  document.addEventListener('click', function (e) {
21    var el = e.target && e.target.closest ? e.target.closest('[data-fb-event]') : null;
22    if (el) fireCtaEvent(el);
23  });
24})();

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.