Skip to content

Commit

Permalink
Merge pull request #616 from hlxsites/rum-sample-rate
Browse files Browse the repository at this point in the history
chore: increase sample rate
  • Loading branch information
mhaack authored Dec 19, 2023
2 parents 270ccc0 + 310651a commit 8115c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib-franklin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function sampleRUM(checkpoint, data = {}) {
window.hlx = window.hlx || {};
if (!window.hlx.rum) {
const usp = new URLSearchParams(window.location.search);
const weight = usp.get('rum') === 'on' ? 1 : 100; // with parameter, weight is 1. Defaults to 100.
const weight = usp.get('rum') === 'on' ? 1 : 20; // with parameter, weight is 1. Defaults to 100.
const id = Array.from({ length: 75 }, (_, i) => String.fromCharCode(48 + i))
.filter((a) => /\d|[A-Z]/i.test(a))
.filter(() => Math.random() * 75 > 70)
Expand Down

0 comments on commit 8115c10

Please sign in to comment.