PageSourceSearch

https://dailyreporter.com/wp-content/mu-plugins/mkt/mkt_footer.js?ver=e931dbfd57f0c0358d5e7acf21ff5674

js dailyreporter.com collected 2026-09-24 19:54:36 UTC 3,188 bytes, 117 lines download raw bytes

1/**
2 * Created by chris.meier on 3/7/17.
3 */
4
5//pull in GA object
6(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
7        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
8    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
9})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
10
11//create trackers
12
13//ga('create', 'TRACKER ID', 'auto', 'SiteGA');   //left blank for upgrade to universal if desired
14ga('create', 'UA-141441-76', 'auto', 'DolanRollup');
15ga('create', 'UA-51861146-1', 'auto', 'NewMediaTracker');
16
17//send page views to trackers
18
19// ga('SiteGA.send', 'page view');		//uncomment to enable page views on this tracker
20ga('DolanRollup.send', 'pageview');
21ga('NewMediaTracker.send', 'pageview');
22
23
24
25
26// Marketting BS
27
28function insert_mbs() {
29    var ref = parse_referrer();
30    if (ref) {
31        process_cookie(ref);
32    }
33}
34
35function parse_referrer() {
36
37    var code = getQueryVariable('source');
38    if (code == null) {
39        code = getQueryVariable('source_code');
40    }
41
42    if (code != null) {
43        return code;
44    }
45    else {
46        url = document.referrer;
47        url.replace('/\#.*/', '');  // strip # to end of line
48
49        if (url != "") {
50            if (url.match('/facebook/')) { code = 'FB:SOC'; }
51            else if (url.match('/google/')) { code = 'GL'; }
52            else if (url.match('/yahoo/')) { code = 'YA'; }
53            else if (url.match('/linkedin/')) { code = 'LI:SOC'; }
54            else if (url.match('/overt/')) { code = 'OV'; }
55            else { return null; }
56        }
57        else {
58            return null;
59        }
60    }
61    return code;
62}
63
64function process_cookie(ref_code) {
65    if (get_cookie('ips_scode') == null) {
66        set_cookie('ips_scode', ref_code, 14);
67        set_cookie('ips_stype', 'WEB', 14);
68    }
69}
70
71insert_mbs();
72
73// com score BS
74
75var _comscore = _comscore || [];
76_comscore.push({ c1: "2", c2: "9289482" });
77(function() {
78    var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
79    s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
80    el.parentNode.insertBefore(s, el);
81})();
82
83
84
85// generic functions
86
87function setCookie(cname, cvalue, exdays) {
88    var d = new Date();
89    d.setTime(d.getTime() + (exdays*24*60*60*1000));
90    var expires = "expires="+ d.toUTCString();
91    document.cookie = cname + "=" + cvalue + "; " + expires;
92}
93
94function getCookie(cname) {
95    var name = cname + "=";
96    var ca = document.cookie.split(';');
97    for(var i = 0; i <ca.length; i++) {
98        var c = ca[i];
99        while (c.charAt(0)==' ') {
100            c = c.substring(1);
101        }
102        if (c.indexOf(name) == 0) {
103            return c.substring(name.length,c.length);
104        }
105    }
106    return null;
107}
108
109function getQueryVariable(variable) {
110    var query = window.location.search.substring(1);
111    var vars = query.split("&");
112    for (var i=0;i<vars.length;i++) {
113        var pair = vars[i].split("=");
114        if(pair[0] == variable){return pair[1];}
115    }
116    return(false);
117}

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.