Skip to content

Commit

Permalink
chore: drop pages viewed checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chicharr committed Mar 25, 2024
1 parent 1b618f0 commit 3ba17e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/* eslint-env browser */
const KNOWN_PROPERTIES = ['weight', 'id', 'referer', 'checkpoint', 't', 'source', 'target', 'cwv', 'CLS', 'FID', 'LCP', 'INP', 'TTFB'];
const DEFAULT_TRACKING_EVENTS = ['click', 'cwv', 'form', 'enterleave', 'viewblock', 'viewmedia', 'loadresource', 'utm'];
const SESSION_STORAGE_KEY = 'aem-rum';
const { sampleRUM, queue, isSelected } = window.hlx.rum;

const urlSanitizers = {
Expand Down Expand Up @@ -272,9 +271,6 @@ function addTrackingFromConfig() {
}

function initEnhancer() {
// eslint-disable-next-line max-len
const rumStorage = sessionStorage.getItem(SESSION_STORAGE_KEY) ? JSON.parse(sessionStorage.getItem(SESSION_STORAGE_KEY)) : {};
sampleRUM('pagesviewed', { source: rumStorage.pages });
addTrackingFromConfig();
window.hlx.rum.collector = trackCheckpoint;
processQueue();
Expand Down

0 comments on commit 3ba17e3

Please sign in to comment.