PageSourceSearch

https://ti-unterrichtsmaterialien.net/typo3conf/ext/site_config/Re…/JavaScript/TI_UA-2223890-17.js?1688981808

js ti-unterrichtsmaterialien.net collected 2026-09-28 10:54:31 UTC 1,834 bytes, 56 lines download raw bytes

1// Google Analytics 
2(function (i, s, o, g, r, a, m) {
3    i['GoogleAnalyticsObject'] = r;
4    i[r] = i[r] || function () {
5        (i[r].q = i[r].q || []).push(arguments);
6    }, i[r].l = 1 * new Date();
7    a = s.createElement(o), m = s.getElementsByTagName(o)[0];
8    a.async = 1;
9    a.src = g;
10    m.parentNode.insertBefore(a, m);
11})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
12
13ga('create', 'UA-2223890-17', 'auto');
14ga('require', 'displayfeatures');
15ga('send', 'pageview');
16
17$(function () {
18    $('form').on('submit', function () {
19        var $this = $(this);
20        var category = $('html').attr('data-category') || 'global';
21        var action = 'Form';
22        var label = 'Submission';
23        ga('send', 'event', category, action, label);
24    });
25});
26
27$(function () {
28    $('body').on('click', 'a', function () {
29        var $this = $(this);
30        var category = $('html').attr('data-category') || 'global';
31        var action = function () {
32            var href = $this.attr('href') || '';
33            if ((href.indexOf('/media/') >= 0) || (href.indexOf('/fileadmin/') >= 0)) {
34                return 'Download';
35            } else if (href.indexOf('lightbox=') >= 0) {
36                return 'Lightbox';
37            } else {
38                return 'Click';
39            }
40        };
41        var label = function () {
42            if (action() === 'Download') {
43                var result = $this.attr('href').substring($this.attr('href').lastIndexOf('/') + 1);
44                return result;
45            }
46            var data = $this.attr('data-label');
47            if (data) {
48                return data;
49            } else {
50                return $this.text();
51            }
52        };
53        ga('send', 'event', category, action(), label());
54    });
55});
56// Google Analytics

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.