PageSourceSearch

https://www.schreinerzeitung.ch/sites/all/themes/schreinerzeitung_ch/js/ga_tracking.js

js schreinerzeitung.ch collected 2026-10-02 16:17:10 UTC 1,933 bytes, 59 lines download raw bytes

1(function($) {
2	$(function() {
3
4	  window.dataLayer = window.dataLayer || [];
5
6	  $(window).load(function() {
7
8        /* track banner clicks on home slider banners */
9        $('#home').on('click', '.cycle-slideshow .slide', function(event) {
10          var el = $(this);
11          var href = el.data('href');
12          var title = el.data('title');
13
14          dataLayer.push({
15            'event': 'banner_click',
16            'banner_category': 'Banner Home',
17            'banner_href': href,
18            'banner_title': title
19          });
20
21        });
22
23        /* track clicks on white area (slideshow controls) */
24        $('#home').on('click', '.slider-controls .click-container', function(e){
25          // get current slide of cycle slideshow
26          var counter = 1;
27          var current_slide = parseInt($('#home .cycle-slideshow').data("cycle.opts").currSlide);
28          $('#home .cycle-slideshow').data("cycle.opts").slides.each(function(e, value){
29            if (e == current_slide) {
30              var link_location = $(this)[0].dataset.linklocation;
31              var href = '/de' + $(this)[0].dataset.href;
32              var title = $(this)[0].dataset.title;
33
34              dataLayer.push({
35                'event': 'banner_click',
36                'banner_category': 'Banner Home',
37                'banner_href': href,
38                'banner_title': title
39              });
40            }
41          });
42        });
43
44        /* track banner views on home slider banners */
45        $( '#home .cycle-slideshow' ).on( 'cycle-after', function( event, optionHash, outgoingSlideEl, incomingSlideEl, forwardFlag ) {
46          var href = optionHash.href;
47          var title = optionHash.title;
48
49          dataLayer.push({
50            'event': 'banner_view',
51            'banner_category': 'Banner Home',
52            'banner_href': href,
53            'banner_title': title
54          });
55        });
56
57	  });
58	});
59})(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.