PageSourceSearch

https://www.orchardortho.com/js/prm-attribution.js

js orchardortho.com collected 2026-10-04 13:25:15 UTC 2,574 bytes, 1 lines download raw bytes

1!function(){var e="__prmAttribution",t="__gaClientId";function n(){var e={},t=window.location.search.replace(/^\?/,"");return t&&t.split("&").forEach(function(t){if(t){var n=t.split("="),o=decodeURIComponent((n[0]||"").replace(/\+/g," ")),r=decodeURIComponent((n[1]||"").replace(/\+/g," "));e[o]=r}}),e}function o(e){if(!e)return{source:"(direct)",medium:"(none)"};try{var t=new URL(e).hostname.replace(/^www\./,""),n=window.location.hostname.replace(/^www\./,"");return t===n?{source:"(direct)",medium:"(none)"}:{source:t,medium:"referral"}}catch(e){return{source:"(direct)",medium:"(none)"}}}function r(){try{return JSON.parse(localStorage.getItem(e)||"{}")}catch(e){return{}}}function c(t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}}function a(){try{return localStorage.getItem(t)||""}catch(e){return""}}function i(e){try{e&&localStorage.setItem(t,e)}catch(e){}}function u(){var e=r(),t=n(),a=document.referrer||"",i={source:e.source||"(direct)",medium:e.medium||"(none)",campaign:e.campaign||"",term:e.term||"",content:e.content||"",gclid:e.gclid||"",dclid:e.dclid||"",landingPage:e.landingPage||window.location.pathname,updatedAt:Date.now()};(t.utm_source||t.utm_medium||t.utm_campaign||t.utm_term||t.utm_content)&&(i.source=t.utm_source||i.source,i.medium=t.utm_medium||i.medium,i.campaign=t.utm_campaign||t.campaign_id||i.campaign,i.term=t.utm_term||i.term,i.content=t.utm_content||i.content),t.gclid&&(i.gclid=t.gclid,i.source="google",i.medium="cpc",i.content=t.gclid),t.dclid&&(i.dclid=t.dclid,i.source="google",i.medium="display",i.content=t.dclid),t.utm_source||t.utm_medium||t.utm_campaign||t.gclid||t.dclid||e.gclid||e.dclid||(function(){var e=o(a);i.source=e.source,i.medium=e.medium}()),c(i)}function l(){"function"==typeof gtag&&gtag("get","G-2DKHNC8GFE","client_id",function(e){i(e||"")})}function s(e,t,n){e.querySelectorAll('[name="'+t+'"]').forEach(function(e){e.value=n||""})}function d(e){var t=r(),n=a();t.gclid?(t.source="google",t.medium="cpc",t.content=t.gclid):t.dclid&&(t.source="google",t.medium="display",t.content=t.dclid),s(e,"custom14",JSON.stringify(window.Mojito&&Mojito.segment.getProp("previousPages")||[])),s(e,"custom15",t.content||""),s(e,"custom16",t.source||""),s(e,"custom17",t.medium||""),s(e,"custom18",t.term||""),s(e,"custom19",t.campaign||""),s(e,"custom20",n||"")}function m(){document.querySelectorAll("form.tio_form, form.ajax_form").forEach(function(e){f(e),d(e),e.addEventListener("submit",function(){d(e)})})}u(),l(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",m):m()}();

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.