diff --git a/src/index.js b/src/index.js index fd9f835..b8ef749 100644 --- a/src/index.js +++ b/src/index.js @@ -242,7 +242,8 @@ function addUTMParametersTracking() { const usp = new URLSearchParams(window.location.search); [...usp.entries()] .filter(([key]) => key.startsWith('utm_')) - .filter(([key]) => key !== 'utm_id') + // exclude keys that may leak PII + .filter(([key]) => key !== 'utm_id' && key !== 'utm_term') .forEach(([source, target]) => sampleRUM('utm', { source, target })); }