PageSourceSearch

https://developerakademie.com/wp-content/themes/developerakademie-wp/assets/js/utm-params.js?ver=1790766710

js developerakademie.com collected 2026-10-02 15:06:17 UTC 2,865 bytes, 1 lines download raw bytes

1const STATSIG_STABLE_ID_PARAM="da_sid",STATSIG_STABLE_ID_PREFIX="statsig.stable_id.",STATSIG_CONSENT_CATEGORY="analytics";let statsigConsentWasGranted=!1;const UTM_PARAMS=["utm_source","utm_medium","utm_campaign","utm_id","utm_term","utm_content","fbclid","initialSource","gclid","wbraid"];function getTrackedParams(){const a=new URLSearchParams(window.location.search),b=new Map;for(const c of UTM_PARAMS){const d=a.get(c);d&&b.set(c,d)}return b}function appendQueryParametersToLinks(){const a=findApplicationLinks(),b=getTrackedParams(),c=getStatsigLinkParams();for(const d of a){const a=new URL(d.href);for(const[c,d]of b)a.searchParams.set(c,d);a.searchParams.delete(STATSIG_STABLE_ID_PARAM),c&&a.searchParams.set(STATSIG_STABLE_ID_PARAM,c),a.searchParams.set("source_url",window.location.origin+window.location.pathname),d.href=a.toString()}}function getStatsigLinkParams(){return hasStatsigAnalyticsConsent()?readStatsigStableId():""}function hasStatsigAnalyticsConsent(){return"function"==typeof window.daHasConsent&&window.daHasConsent(STATSIG_CONSENT_CATEGORY)}function dropStatsigStorage(){try{const a=[];for(let b=0;b<window.localStorage.length;b++){const c=window.localStorage.key(b);c&&c.startsWith("statsig.")&&a.push(c)}for(const b of a)window.localStorage.removeItem(b)}catch(a){}}function statsigConsentDeclined(){return"function"==typeof window.daConsentDeclined&&window.daConsentDeclined(STATSIG_CONSENT_CATEGORY)}function readStatsigStableId(){const a=window.__daAb&&window.__daAb.stableId;if(a)return a;try{for(let a=0;a<window.localStorage.length;a++){const b=window.localStorage.key(a);if(!b||!b.startsWith(STATSIG_STABLE_ID_PREFIX))continue;const c=window.localStorage.getItem(b);if(!c)continue;const d=JSON.parse(c);if("string"==typeof d&&d)return d}}catch(a){return""}return""}function watchForStatsigLinkParams(){statsigConsentWasGranted=hasStatsigAnalyticsConsent(),document.addEventListener("da_consent_change",()=>{hasStatsigAnalyticsConsent()?statsigConsentWasGranted=!0:(statsigConsentWasGranted||statsigConsentDeclined())&&dropStatsigStorage(),appendQueryParametersToLinks()}),document.addEventListener("da_ab_link_params",appendQueryParametersToLinks)}function forwardQueryParametersToInternalLinks(){const a=getTrackedParams();if(0!==a.size)for(const b of findInternalLinks()){const c=new URL(b.href);for(const[b,d]of a)c.searchParams.set(b,d);b.href=c.toString()}}function findApplicationLinks(){const a=document.querySelectorAll(`a[href^="${"https://weiterbildung.developerakademie.com/"}"]`);return Array.from(a)}function findInternalLinks(){const a=document.querySelectorAll("a[href]");return Array.from(a).filter(a=>{if(a.origin!==window.location.origin)return!1;const b=a.getAttribute("href");return!!b&&!b.startsWith("#")})}appendQueryParametersToLinks(),forwardQueryParametersToInternalLinks(),watchForStatsigLinkParams();

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.