PageSourceSearch

https://zdeneksmetana.cz/wp-content/plugins/visitors-traffic-real-time-statistics-pro/js/front.js?ver=11.22

js zdeneksmetana.cz collected 2026-10-01 01:53:50 UTC 2,694 bytes, 60 lines download raw bytes

1var pageid = ahc_ajax_front.page_id;
2var page_id = (pageid.length > 0) ? pageid : ''; 
3var pagetitle = ahc_ajax_front.page_title;
4var page_title = (pagetitle.length > 0) ? pagetitle : ''; 
5var posttype = ahc_ajax_front.post_type;
6var post_type = (posttype.length > 0) ? posttype : ''; 
7var referer = document.referrer;
8var useragent = window.navigator.userAgent;
9var servername = location.hostname;
10var hostname = location.host;
11var request_uri = location.pathname.substring(1);
12// الـ query string يحمل معاملات الحملة (utm_source/utm_medium/...) — نرسله
13// للسيرفر ليتمكّن من تحديد مصدر الزيارة من الحملة وليس فقط من الـ referer.
14var page_query = location.search;
15
16var xhttp = new XMLHttpRequest();
17
18xhttp.open("POST", ahc_ajax_front.ajax_url, true);
19xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
20xhttp.send("action=ahcpro_track_visitor" +
21    "&page_id=" + encodeURIComponent(page_id) +
22    "&page_title=" + encodeURIComponent(page_title) +
23    "&post_type=" + encodeURIComponent(post_type) +
24    "&referer=" + encodeURIComponent(referer) +
25    "&useragent=" + encodeURIComponent(useragent) +
26    "&servername=" + encodeURIComponent(servername) +
27    "&hostname=" + encodeURIComponent(hostname) +
28    "&page_query=" + encodeURIComponent(page_query) +
29    "&request_uri=" + encodeURIComponent(request_uri));
30
31// ============================================================
32// WordPress Heartbeat API integration
33// يضيف IP الزائر على كل heartbeat يرسله WordPress تلقائياً
34// ============================================================
35(function() {
36    function attachHeartbeat() {
37        if (typeof jQuery === 'undefined') {
38            setTimeout(attachHeartbeat, 200);
39            return;
40        }
41
42        jQuery(document).on('heartbeat-send.ahcpro', function(event, data) {
43            if (typeof ahc_ajax_front !== 'undefined' && ahc_ajax_front.visitor_ip) {
44                data['ahcpro_heartbeat_ip'] = ahc_ajax_front.visitor_ip;
45            }
46        });
47
48        // إبقاء الـ heartbeat على الإعداد القياسي (كل 60 ثانية) بدل fast (15 ثانية)
49        // لتقليل الضغط على السيرفر وقاعدة البيانات تحت الترافيك العالي.
50        if (typeof wp !== 'undefined' && wp.heartbeat && typeof wp.heartbeat.interval === 'function') {
51            wp.heartbeat.interval('standard');
52        }
53    }
54
55    if (document.readyState === 'loading') {
56        document.addEventListener('DOMContentLoaded', attachHeartbeat);
57    } else {
58        attachHeartbeat();
59    }
60})();

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.