PageSourceSearch

https://www.jhrl.com/sites/all/modules/rescms/rc_core/modules/rc_ua/js/rc_ua_g4.js?tlse4v

js jhrl.com collected 2026-10-06 13:18:55 UTC 986 bytes, 43 lines download raw bytes

1var ga4 = {
2
3  item: function (obj) {
4    if (typeof obj.id != 'undefined' && typeof obj.item_id == 'undefined') {
5      obj.item_id = obj.id;
6    }
7
8    if (typeof obj.name != 'undefined' && typeof obj.item_name == 'undefined') {
9      obj.item_name = obj.name;
10    }
11  },
12
13  eventName: function (name, obj) {
14    this.event(Object.assign({
15      event: name
16    }, obj));
17  },
18
19  event: function (obj) {
20    var self = this;
21
22    // Make sure data layer is available.
23    if (typeof Drupal.settings.rc_ua == 'undefined' ||
24      typeof window[Drupal.settings.rc_ua.rc_ua_tm_datalayer] == 'undefined') {
25      return;
26    }
27
28    // Convert ga items into ga4 items.
29    if (typeof obj.item != 'undefined') {
30      self.item(obj.item);
31    }
32
33    if (typeof obj.items != 'undefined') {
34      obj.items.map(function (item) {
35        self.item(item);
36      });
37    }
38
39    // Push ga4 event object into the datalayer.
40    window[Drupal.settings.rc_ua.rc_ua_tm_datalayer].push(obj);
41  }
42};
43

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.