Skip to content

Commit

Permalink
Merge pull request #140 from adobe/drop-pagesviewed
Browse files Browse the repository at this point in the history
chore: drop pages viewed checkpoint
  • Loading branch information
chicharr authored Apr 18, 2024
2 parents c6f5a2c + 3ba17e3 commit 07325f0
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 @@ -291,9 +290,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 07325f0

Please sign in to comment.