PageSourceSearch

https://affiliate.smsticket.cz/js/module/tracking-v3.js

js smsticket.cz collected 2026-09-24 09:15:23 UTC 2,210 bytes, 60 lines download raw bytes

1function tracking() {
2
3    var urlParams;
4
5    (window.onpopstate = function () {
6        var match,
7            pl     = /\+/g,
8            search = /([^&=]+)=?([^&]*)/g,
9            decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
10            query  = (window.location.search != "") ? window.location.search : window.location.hash;
11
12        urlParams = {};
13        while (match = search.exec(query.substr(1)))
14            urlParams[decode(match[1])] = decode(match[2]);
15    })();
16
17    if ("a_box" in urlParams) {
18    	var affilID = urlParams["a_box"];
19	} else if ("a_aid" in urlParams) {
20        var affilID = urlParams["a_aid"];
21    } else if ("aff_id" in urlParams) {
22        var affilID = urlParams["aff_id"];
23    }
24
25    if ("a_cam" in urlParams) {
26        var aCam = urlParams["a_cam"];
27    }
28
29    if ("a_cha" in urlParams) {
30        var channel = urlParams["a_cha"];
31    } else if ("chan" in urlParams) {
32        var channel = urlParams["chan"];
33    } else {
34        var i = 0;
35        var channel = [];
36        while ("a_cha["+ i +"]" in urlParams) {
37            channel[i] = urlParams["a_cha["+ i +"]"];
38            i++;
39        }
40    }
41
42    if (document.referrer) {
43        var url = document.referrer;
44        var ref = url.match(/:\/\/(.[^/]+)/)[1];
45    }
46
47    if (affilID != undefined || (ref != undefined && ref != document.location.hostname)) {
48        if (aCam == undefined || typeof ab_kampan == 'undefined' || (typeof ab_kampan !== 'undefined' && aCam == ab_kampan)) {
49            var iframe = document.createElement('iframe');
50            iframe.src = "https://"+ ab_instance +"/t/aid/"+ ab_inzerent +"/kid/"+ ((typeof ab_kampan !== 'undefined') ? ab_kampan : "0") + ((affilID != undefined) ? "/id/"+ affilID : "") +"/kanal/"+ encodeURIComponent(JSON.stringify(channel)) + ((aCam != undefined) ? "/acam/" + aCam : "") +"/v/3/?referrer="+ document.referrer;
51            iframe.width = 1;
52            iframe.height = 1;
53            iframe.style = "border: 0; position: absolute; top: -1000px;";
54            iframe.scrolling = "no";
55            document.body.appendChild(iframe);
56        }
57    }
58}
59
60tracking();

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.