1class HotjarRegistrationService { 2 static registerHotjarEventInURI(event) { 3 const separator = window.location.search ? '&' : '?'; 4 window.location.href = window.location.href + separator + 'hj_event=' + encodeURIComponent(event); 5 } 6 7 static consumeHotjarEventInURIIfExists() { 8 const queryString = window.location.search; 9 const urlParams = new URLSearchParams(queryString); 10 if(urlParams.get('hj_event')) { 11 const event = decodeURI(urlParams.get('hj_event')); 12 hj('event', event); 13 urlParams.delete('hj_event') 14 window.history.pushState({}, "", "?" + urlParams.toString()); 15 } 16 } 17}
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.