PageSourceSearch

https://www.cestadomu.cz/sites/all/modules/_custom/custom_gtm/custom_gtm.js?tm48l3

js cestadomu.cz collected 2026-10-02 05:00:20 UTC 3,281 bytes, 117 lines download raw bytes

1(function ($) {
2  if (!Drupal.ajax) return;
3
4  // Track mform steps (virtual pages)
5  Drupal.ajax.prototype.commands.trackMformSteps = function(ajax, response, status) {
6    dataLayer.push({
7      'event': 'ga.pageview',
8      'page': {
9      'path': response.eventPath,
10      'title': response.eventTitle,
11      }
12    });
13    //console.log(response.eventPath);
14  }
15})(jQuery);
16
17
18
19(function ($) {
20  // track all outbound links
21  $('.not-logged-in a').each(function() {
22    var a = new RegExp('/' + window.location.host + '/');
23    if (!a.test(this.href)) {
24      $(this).bind("click touchstart", function(e){
25        var link = this.href;
26        if (link) {
27          if (window['google_tag_manager']) {
28            e.preventDefault();
29            dataLayer.push({
30              'event': 'ga.event',
31              'eventData': {
32                'category': 'Outbound links',
33                'action': 'Click',
34                'label': e.target.href,
35                'value': undefined
36              },
37              'eventCallback': function () {
38                window.location = link;
39              },
40              'eventTimeout': 2000
41            });
42          }
43        }
44      });
45    }
46  });
47  $('.not-logged-in a[href*="podporte-nas"]').each(function() {
48    var label = 'Hlavička';
49    if ($(this).closest('body').hasClass('front')) {
50      label = 'Homepage';
51    }
52    else if ($(this).parent().hasClass('footer-section')) {
53      label = 'Patička';
54    }
55    $(this).bind("click touchstart", function(e){
56      var link = this.href;
57      if (window['google_tag_manager']) {
58        e.preventDefault();
59        dataLayer.push({
60          'event': 'ga.event',
61          'eventData': {
62            'category': 'Dar přes web',
63            'action': 'Proklik na darovací stránku',
64            'label': label,
65            'value': undefined
66          },
67          'eventCallback': function() {
68              window.location = link;
69            },
70            'eventTimeout' : 2000
71        });
72      }
73    });
74  });
75  $('.not-logged-in a[href*="us8.list-manage"], .not-logged-in a[href*="bX9mPj"]').each(function() {
76    $(this).bind("click touchstart", function(e){
77      var link = this.href;
78      if (window['google_tag_manager']) {
79        e.preventDefault();
80        dataLayer.push({
81        'event': 'ga.event',
82        'eventData': {
83        'category': 'Kaleidoskop',
84        'action': 'Proklik na přihlášení',
85        'label': undefined,
86        'value': undefined
87        },
88        'eventCallback': function() {
89            window.location = link;
90          },
91          'eventTimeout' : 2000
92        });
93      }
94    });
95  });
96  $('.not-logged-in a[href*="formular/prihlaska-do-klubu-pratel"]').each(function() {
97    $(this).bind("click touchstart", function(e){
98      var link = this.href;
99      if (window['google_tag_manager']) {
100        e.preventDefault();
101        dataLayer.push({
102        'event': 'ga.event',
103        'eventData': {
104        'category': 'Klub přátel',
105        'action': 'Proklik na přihlášení',
106        'label': undefined,
107        'value': undefined
108        },
109        'eventCallback': function() {
110            window.location = link;
111          },
112          'eventTimeout' : 2000
113        });
114      }
115    });
116  });
117})(jQuery);

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.