PageSourceSearch

https://retreatofatlanta.com/wp-content/plugins/tracking-cookies/i…/assets/js/tracking.js?ver=250626-171614

js retreatofatlanta.com collected 2026-09-26 09:15:58 UTC 4,989 bytes, 71 lines download raw bytes

1/*! js-cookie v3.0.0-beta.2 | MIT */
2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var n=e.Cookies,r=e.Cookies=t();r.noConflict=function(){return e.Cookies=n,r}}())}(this,function(){"use strict";var e={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}return function n(r,o){function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),n=r.write(n,e),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=e+"="+n+c}}return{set:i,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],o={},i=0;i<n.length;i++){var c=n[i].split("="),u=c.slice(1).join("=");'"'===u[0]&&(u=u.slice(1,-1));try{var f=e.read(c[0]);if(o[f]=r.read(u,f),t===f)break}catch(e){}}return t?o[t]:o}},remove:function(e,n){i(e,"",t({},n,{expires:-1}))},withAttributes:function(e){return n(this.converter,t({},this.attributes,e))},withConverter:function(e){return n(t({},this.converter,e),this.attributes)},attributes:Object.freeze(o),converter:Object.freeze(r)}}(e,{path:"/"})});
3
4function addLandingUrl() {
5    if (!Cookies.get('landing_page_url')) {
6        Cookies.set('landing_page_url', window.location.href, { expires: 90 });
7    }
8    if( typeof sessionStorage[ 'landing_page_url_last' ] === "undefined" ){
9        sessionStorage['landing_page_url_last'] = window.location.href;
10    }
11    if ((!Cookies.get('referrer_url') || Cookies.get('referrer_url')=='') && document.referrer!='') {
12        Cookies.set('referrer_url', document.referrer, { expires: 90 });
13    }else if(!Cookies.get('referrer_url') || Cookies.get('referrer_url')==''){
14        Cookies.set('referrer_url', window.location.hostname, { expires: 90 });
15    }
16    if( (typeof sessionStorage[ 'referrer_url_last' ] === "undefined" || sessionStorage[ 'referrer_url_last' ]=='' ) && document.referrer!='') {
17        sessionStorage['referrer_url_last'] = document.referrer;
18    }else if( typeof sessionStorage[ 'referrer_url_last' ] === "undefined" ||  sessionStorage[ 'referrer_url_last' ] == ""){
19        sessionStorage['referrer_url_last'] = window.location.hostname;
20    }
21}
22
23function getGoogleCid(){
24    var match = document.cookie.match('(?:^|;)\\s*_ga=([^;]*)');
25    var raw = (match) ? decodeURIComponent(match[1]) : null;
26    if (raw){
27        match = raw.match(/(\d+\.\d+)$/);
28    }
29    var gacid = (match) ? match[1] : null;
30    return gacid || '';
31}
32
33
34function addCustomVariables() {
35    custom_variables = [
36        { name: "landing_page_url", value: Cookies.get('landing_page_url') ? Cookies.get('landing_page_url') : '' },
37        { name: "landing_page_url_last", value: sessionStorage[ 'landing_page_url_last' ] ? sessionStorage[ 'landing_page_url_last' ] : ''  },
38        { name: "referrer_url", value: Cookies.get('referrer_url') ? Cookies.get('referrer_url') : '' },
39        { name: "referrer_url_last", value: sessionStorage[ 'referrer_url_last' ] ? sessionStorage[ 'referrer_url_last' ] : ''  },
40        { name: "google_client_id", value: getGoogleCid()  },
41    ];
42}
43
44addLandingUrl();
45addCustomVariables();
46
47var __ctm_cvars = __ctm_cvars || [];
48__ctm_cvars.push({
49    landing_page_url: Cookies.get('landing_page_url') ? Cookies.get('landing_page_url') : '',
50    landing_page_url_last: sessionStorage[ 'landing_page_url_last' ] ? sessionStorage[ 'landing_page_url_last' ] : '',
51    referrer_url: Cookies.get('referrer_url') ? Cookies.get('referrer_url') : '',
52    referrer_url_last: sessionStorage[ 'referrer_url_last' ] ? sessionStorage[ 'referrer_url_last' ] : '',
53    converting_page_url: window.location.href,
54});
55
56setInterval(function(){ 
57    addLandingUrl(); 
58    var landing_page_url      = Cookies.get('landing_page_url');
59    var referrer_url          = Cookies.get('referrer_url');
60    var referrer_url_last     = sessionStorage.getItem("referrer_url_last");
61    var landing_page_url_last = sessionStorage.getItem("landing_page_url_last");
62    var current_url           = window.location.href;
63    var converting_url        = decodeURI(current_url);
64
65    jQuery("textarea[name='referrer_url']").text(referrer_url);
66	jQuery("textarea[name='referrer_url_last']").text(referrer_url_last);
67	jQuery("textarea[name='landing_page_url']").text(landing_page_url);
68    jQuery("textarea[name='landing_page_url_last']").text(landing_page_url_last);
69    jQuery("textarea[name='converting_url']").text(converting_url ); 
70	
71}, 3000);

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.