Skip to content

Commit 27e769f

Browse files
authored
Merge pull request #34 from adobe/rum-v2-v2
fix: missed updated in delayed and 404
2 parents 8466932 + b0bc0ca commit 27e769f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

404.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
1313
<script type="module">
1414
import { sampleRUM } from '/scripts/scripts.js';
15-
15+
sampleRUM('404', { source: document.referrer });
16+
</script>
17+
<script type="module">
1618
window.addEventListener('load', () => {
1719
if (document.referrer) {
1820
const { origin, pathname } = new URL(document.referrer);
@@ -26,7 +28,6 @@
2628
btnContainer.append(backBtn);
2729
}
2830
}
29-
sampleRUM('404', { source: document.referrer, target: window.location.href });
3031
});
3132
</script>
3233
<link rel="stylesheet" href="/styles/styles.css">

scripts/delayed.js

-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
// eslint-disable-next-line import/no-cycle
2-
import { sampleRUM } from './aem.js';
3-
4-
// Core Web Vitals RUM collection
5-
sampleRUM('cwv');
6-
71
// add more delayed functionality here

0 commit comments

Comments
 (0)