PageSourceSearch

https://prointerior.fi/wp-content/plugins/liana-with-growthstack/d…/analytics.js?ver=7b3e1fb8a0c87ed83797

js prointerior.fi collected 2026-09-26 02:42:22 UTC 9,149 bytes, 1 lines download raw bytes

1(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var t=function t(n,s){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},s,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var r in o)o[r]&&(a+="; "+r,!0!==o[r]&&(a+="="+o[r].split(";")[0]));return document.cookie=t+"="+n.write(i,t)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],s={},i=0;i<t.length;i++){var o=t[i].split("="),a=o.slice(1).join("=");try{var r=decodeURIComponent(o[0]);if(s[r]=n.read(a,r),e===r)break}catch(e){}}return e?s[e]:s}},remove:function(t,n){i(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),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)}},{path:"/"});const n={cookieName:"growthstack",sessionCookieName:"growthstack-session",default:{isUser:!1,lastVisitDate:"",segments:""},defaultSession:{pages:{},utm:null,isEngaged:!1,ABTests:{}},isSet(e=!1){return void 0!==t.get(e?this.sessionCookieName:this.cookieName)},get(e=!1){const n=t.get(e?this.sessionCookieName:this.cookieName);return n?JSON.parse(n):{}},set(e,n=!1){const s={path:"/",sameSite:"strict",secure:!0};n||(s.expires=365),t.set(n?this.sessionCookieName:this.cookieName,JSON.stringify(e),s)},isUser(){var e;const t=this.get();return null!==(e=t?.isUser)&&void 0!==e&&e},setIsUser(){const e=this.get();e.isUser=!0,this.set(e)},getSegments(){var e;const t=this.get();return null!==(e=t?.segments)&&void 0!==e?e:""},setSegments(e){const t=this.get();t.segments=e,this.set(t)},getLastVisitDate(){var e;const t=this.get();return null!==(e=t?.lastVisitDate)&&void 0!==e?e:""},updateLastVisitDate(e){const t=this.get();t.lastVisitDate=e,this.set(t)},isEngaged(){var e;const t=this.get(!0);return null!==(e=t?.isEngaged)&&void 0!==e&&e},setVisitorAsEngaged(){const e=this.get(!0);e.isEngaged=!0,this.set(e,!0)},getSessionPages(){var e;const t=this.get(!0);return null!==(e=t?.pages)&&void 0!==e?e:null},updateSessionPages(e){const t=this.get(!0);t.pages=e,this.set(t,!0)},getUTM(){var e;const t=this.get(!0);return null!==(e=t?.utm)&&void 0!==e?e:null},updateUTM(e){const t=this.get(!0);t.utm=e,this.set(t,!0)},getABTests(){var e;const t=this.get(!0);return null!==(e=t?.ABTests)&&void 0!==e?e:{}},getABTestVariant(e){var t;const n=this.get(!0);return null!==(t=n?.ABTests?.[e])&&void 0!==t?t:null},setABTestVariant(e,t){const n=this.get(!0);n.ABTests||(n.ABTests={}),n.ABTests[e]=t,this.set(n,!0)}};function s(){var e,t;const s=GROWTHSTACK_ANALYTICS.endpoint,i=null!==(e=GROWTHSTACK_ANALYTICS.postID)&&void 0!==e?e:0,o=[],a={newUser:{},segments:[],campaigns:{}},r=null!==(t=GROWTHSTACK_ANALYTICS.limitedTracking)&&void 0!==t?t:0;let d=!1;const c=()=>{const e=n.getABTests();return Object.entries(e).map(([e,t])=>({id:e,value:t}))},l=(e,t)=>{o.push({type:e,postID:i,data:t})},u=()=>{0!==o.length&&(window.navigator.sendBeacon(`${s}`,new Blob([JSON.stringify({user_agent:window.navigator.userAgent||"",events:o})],{type:"application/json; charset=UTF-8"})),o.length=0)},g=new Set,h=e=>{if("A"===e.target.tagName&&""!==e.target.href){const t=new URL(e.target.href);if(t.host!==window.location.host){if(g.has(t.href))return;g.add(t.href),l("externalLinkClick",{ABTests:c(),URL:e.target.href})}}},p=()=>{function e(e){const t=e.target;if(t.readyState!==XMLHttpRequest.DONE)return;const n=new URL(t.responseURL),s=n.searchParams,i=s.get("id"),o=document.querySelector(`.lianaautomation-form-wrapper[data-la-id="${i}"]`)?.dataset?.formId;n.host.includes(".lianacem.com")&&"formsend"===s.get("v")&&o&&l("formSubmission",{ABTests:c(),form_provider:"liana-automation-form",form_id:o})}const t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){return this.addEventListener("readystatechange",e),t.apply(this,arguments)}},v=()=>{r||((()=>{const e=function(){const e=new URLSearchParams(window.location.search),t={},n={},s=["gclid","fbclid","li_fat_id","msclkid","twclid"];return e.forEach((e,i)=>{s.includes(i)?t.other=i:i.startsWith("utm_")&&(t[i]=e,n[i]=e)}),{all:t,utm:n}}();Object.keys(e.all).length>
10&&(a.campaigns=e.all,Object.keys(e.utm).length>0&&n.updateUTM(e.utm));const t=function(e=null){const t=e?new Date(e):new Date;return`${t.getFullYear()}${("0"+(t.getMonth()+1)).slice(-2)}${("0"+t.getDate()).slice(-2)}`}(),s="liana_s";if(i=s,decodeURIComponent(document.cookie).split("; ").filter(e=>0===e.indexOf(`${i}=`)).length>0){const e=function(e){return decodeURIComponent(document.cookie).split("; ").filter(t=>0===t.indexOf(`${e}=`)).map(e=>e.substring(8))}(s)[0],t=n.getSegments();if(e&&e!==t){const s=e.split(","),i=t.split(","),o=s.filter(e=>!i.includes(e));a.segments=o,n.setSegments(e)}}var i;if(!n.isSet())return n.updateLastVisitDate(t),a.newUser={new_returning:"new"},a.referrer=document.referrer||"",void(a.userAgent=window.navigator.userAgent||"");const o=n.getLastVisitDate();o!==t&&(a.newUser={new_returning:"returning",last_visit:o},a.referrer=document.referrer||"",n.updateLastVisitDate(t))})(),(()=>{if(n.isUser())return;const e=n.getSessionPages();e&&Object.keys(e).length>=1&&(n.setIsUser(),l("newUser",{})),l("newLandingView",{})})(),(()=>{let e=n.getSessionPages();if(e)return e[GROWTHSTACK_ANALYTICS.postID]=e[GROWTHSTACK_ANALYTICS.postID]+1||1,void n.updateSessionPages(e);e={},e[GROWTHSTACK_ANALYTICS.postID]=1,n.updateSessionPages(e),l("newSession",{})})(),(()=>{var e,t,n;const s={ABTests:c(),URL:window.location.href,newUser:null!==(e=a.newUser)&&void 0!==e?e:{},segments:null!==(t=a.segments)&&void 0!==t?t:[],campaigns:null!==(n=a.campaigns)&&void 0!==n?n:{}};(a.referrer||""===a.referrer)&&(s.referrer=a.referrer),a.userAgent&&(s.userAgent=a.userAgent),l("pageView",s)})(),(()=>{const e={start:new Date,isSaved:!1},t=function(){e.start=new Date,e.isSaved=!1},n=function(){if(e.isSaved)return;e.isSaved=!0;const t=(new Date).getTime()-e.start.getTime();l("timeOnPage",{timeOnPage:t,ABTests:c()}),e.start=new Date,u()};["blur","pagehide","beforeunload"].forEach(e=>{window.addEventListener(e,n)}),window.addEventListener("visibilitychange",function(){return"hidden"===document.visibilityState?n():t()}),window.addEventListener("focus",t)})(),(()=>{if(n.isEngaged())return;const e=n.getSessionPages();if(e&&Object.keys(e).length>1)return n.setVisitorAsEngaged(),void l("newEngagedSession",{});setTimeout(()=>{n.setVisitorAsEngaged(),l("newEngagedSession",{})},"10000")})(),setTimeout(()=>{!0!==d&&(d=!0,l("hasEngagedPage",{ABTests:c()}))},"10000"),document.addEventListener("click",e=>{if(!e.target.href)return;const t=new URL(window.location.href),n=new URL(e.target.href);n.hash=t.hash,!0!==d&&t.href!==n.href&&(d=!0,l("hasEngagedPage",{ABTests:c()}))})),window.addEventListener("click",h,!1),window.addEventListener("auxclick",h,!1),p(),document.addEventListener("GrowthstackABTestGoal",e=>{var t,n,s,i;const o=null!==(t=e?.detail?.testID)&&void 0!==t?t:null,a=null!==(n=e?.detail?.variant)&&void 0!==n?n:null,r=null!==(s=e?.detail?.goalID)&&void 0!==s?s:null,d=null!==(i=e?.detail?.type)&&void 0!==i?i:null;o&&a&&r&&d&&l("ABTestGoal",{testId:o,variant:a,goalId:r,type:d})}),document.addEventListener("GrowthstackPersonalizationReplacementDone",e=>{var t;l("personalizationView",{personalization:null!==(t=e?.detail?.activePersonalizations)&&void 0!==t?t:{}})}),document.addEventListener("GrowthstackPersonalizationClick",function(e){var t,n;const s=null!==(t=e?.detail?.personalizationId)&&void 0!==t?t:"",i=null!==(n=e?.detail?.variantId)&&void 0!==n?n:"";s&&l("personalizationClick",{personalization_id:s,variant_id:i})}),(()=>{const e=function(){l("locationChange",{ABTests:c(),URL:window.location.href})};window.addEventListener("locationchange",e),e()})(),setInterval(()=>{u()},"11000")};var f;"undefined"!=typeof GROWTHSTACK_AB_TEST&&!1!==(null!==(f=GROWTHSTACK_AB_TEST?.ab_test?.id)&&void 0!==f&&f)&&"false"===window.GROWTHSTACK_AB_TEST.ready?document.addEventListener("GrowthstackABTestReplacementDone",v):v()}(()=>{const e=history.pushState;history.pushState=function(){const t=e.apply(this,arguments);return window.dispatchEvent(new Event("pushstate")),window.dispatchEvent(new Event("locationchange")),t};const t=history.replaceState;history.replaceState=function(){const e=t.apply(this,arguments);return window.dispatchEvent(new Event("replacestate")),window.dispatchEvent(new Event("locationchange")),e},window.addEventListener("popstate",()=>{window.dispatchEvent(new Event("locationchange"))})})(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s,!1):s()})();

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.