Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

feat: instrumenting analytics using akamai go-mpulse #133

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
<script src="/us/en/skymiles/scripts/scripts.js" type="module"></script>
<link rel="stylesheet" href="/us/en/skymiles/styles/styles.css"/>
<link rel="icon" href="data:,">
<script>(window.BOOMR_mq=window.BOOMR_mq||[]).push(["addVar",{"rua.upush":"false","rua.cpush":"true","rua.upre":"false","rua.cpre":"false","rua.uprl":"false","rua.cprl":"false","rua.cprf":"false","rua.trans":"SJ-e175c066-d7de-4b5d-9519-e736609e2a22","rua.cook":"false","rua.ims":"false","rua.ufprl":"false","rua.cfprl":"false","rua.isuxp":"false","rua.texp":"norulematch"}]);</script>
3 changes: 3 additions & 0 deletions us/en/skymiles/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ async function loadLazy(doc) {
sampleRUM('lazy');
sampleRUM.observe(main.querySelectorAll('div[data-block-name]'));
sampleRUM.observe(main.querySelectorAll('picture > img'));

// eslint-disable-next-line
!function(a){var e="https://s.go-mpulse.net/boomerang/",t="addEventListener";if("False"=="True")a.BOOMR_config=a.BOOMR_config||{},a.BOOMR_config.PageParams=a.BOOMR_config.PageParams||{},a.BOOMR_config.PageParams.pci=!0,e="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="PWV8J-R2M7Y-67AAN-EA9TD-6DRAX",function(){function n(e){a.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!a.BOOMR||!a.BOOMR.version&&!a.BOOMR.snippetExecuted){a.BOOMR=a.BOOMR||{},a.BOOMR.snippetExecuted=!0;var i,_,o,r=document.createElement("iframe");if(a[t])a[t]("load",n,!1);else if(a.attachEvent)a.attachEvent("onload",n);r.src="javascript:void(0)",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="width:0;height:0;border:0;display:none;",o=document.getElementsByTagName("script")[0],o.parentNode.insertBefore(r,o);try{_=r.contentWindow.document}catch(O){i=document.domain,r.src="javascript:var d=document.open();d.domain='"+i+"';void(0);",_=r.contentWindow.document}_.open()._l=function(){var a=this.createElement("script"),BOOMR_lstart=(new Date).getTime();if(i)this.domain=i;a.id="boomr-if-as",a.src=e+"PWV8J-R2M7Y-67AAN-EA9TD-6DRAX",this.body.appendChild(a)},_.write("<bo"+'dy onload="document._l();">'),_.close()}}(),"".length>0)if(a&&"performance"in a&&a.performance&&"function"==typeof a.performance.setResourceTimingBufferSize)a.performance.setResourceTimingBufferSize();!function(){if(BOOMR=a.BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.AK){var e="true"=="true"?1:0,t="",n="dal7v5limbw6gzbmx3nq-f-30c6cc913-clientnsv4-s.akamaihd.net",i="false"=="true"?2:1,_={"ak.v":"34","ak.cp":"542018","ak.ai":parseInt("237743",10),"ak.ol":"0","ak.cr":28,"ak.ipv":4,"ak.proto":"h2","ak.rid":"1a3aa1e5","ak.r":29077,"ak.a2":e,"ak.m":"x","ak.n":"essl","ak.bpcip":"24.23.250.0","ak.cport":51778,"ak.gh":"23.197.50.223","ak.quicv":"","ak.tlsv":"tls1.3","ak.0rtt":"","ak.csrc":"-","ak.acc":"","ak.t":"1680654043","ak.ak":"hOBiQwZUYzCg5VSAfCLimQ==Fwry4itwy7y18DDollG4VWlKvUUEG+2sjUWZwOELYsoaPxqLEmJ4rFh8MhTCJUVw5pNFwBM14XZlV+2Xf3NDWcChNfMXEcU7T0BydztDejUsbL9bNbzUvap/6xr/KL/zA+PliOtDBwO1od7RrFLpK8yl5C5Y7YLd7vxMrHsdN9w6KUWgr3sYgtUPFGY9h3Vafvy6Ytt+8H+N9wlv3hCEVpHPJwC4WniUU5m1AiXN8uqYzd/XpB0gSX+4fNzNo92KYT5LRrUlCieGLnbVRyml/bAMxWcX2PwsvvZY4+n6VVA4ncMyFEbTHyXtF4YlFFfqfbGKskEeznEe3zF5p/ug2hOkeT6LeWvaaEjilTzoFylE2jTIKfBaFG9SJm+IYt7gu3Vk26fqdWifAKYB4rwboGdz/Suhd+Wa+wQUX78R9m8=","ak.pv":"198","ak.dpoabenc":"","ak.tf":i};if(""!==t)_["ak.ruds"]=t;var o={i:!1,av:function(e){var t="http.initiator";if(e&&(!e[t]||"spa_hard"===e[t]))_["ak.feo"]=void 0!==a.aFeoApplied?1:0,BOOMR.addVar(_)},rv:function(){var a=["ak.bpcip","ak.cport","ak.cr","ak.csrc","ak.gh","ak.ipv","ak.m","ak.n","ak.ol","ak.proto","ak.quicv","ak.tlsv","ak.0rtt","ak.r","ak.acc","ak.t","ak.tf"];BOOMR.removeVar(a)}};BOOMR.plugins.AK={akVars:_,akDNSPreFetchDomain:n,init:function(){if(!o.i){var a=BOOMR.subscribe;a("before_beacon",o.av,null,null),a("onbeacon",o.rv,null,null),o.i=!0}return this},is_complete:function(){return!0}}}}()}(window);
}

/**
Expand Down