diff --git a/scripts/aem.js b/scripts/aem.js index 2ace3102c6..9032e1ecb4 100644 --- a/scripts/aem.js +++ b/scripts/aem.js @@ -70,7 +70,7 @@ function sampleRUM(checkpoint, data) { }); sampleRUM.baseURL = sampleRUM.baseURL || new URL(window.RUM_BASE || '/', new URL('https://rum.hlx.page')); - sampleRUM.collectBaseURL = sampleRUM.collectBaseURL || sampleRUM.baseURL; + sampleRUM.collectBaseURL = sampleRUM.collectBaseURL || new URL(window.origin); sampleRUM.sendPing = (ck, time, pingData = {}) => { // eslint-disable-next-line max-len, object-curly-newline const rumData = JSON.stringify({