Skip to content

Commit

Permalink
feat(email): rollout for all customers 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ekremney committed Jul 2, 2024
1 parent 86cabf3 commit cfa8415
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const fflags = {
enabled: (flag, callback) => fflags.has(flag) && callback(),
disabled: (flag, callback) => !fflags.has(flag) && callback(),
onetrust: [543, 770, 1136],
email: [1139, 543, 770, 984],
};

sampleRUM.baseURL = sampleRUM.baseURL || new URL('https://rum.hlx.page');
Expand Down Expand Up @@ -258,7 +257,8 @@ fflags.enabled('onetrust', () => {
});
})();

fflags.enabled('email', () => {
// email checkpoint
(() => {
const networks = {
mailchimp: /mc_(c|e)id/,
marketo: /mkt_tok/,
Expand All @@ -268,4 +268,4 @@ fflags.enabled('email', () => {
Object.entries(networks).forEach(([network, regex]) => {
params.filter((param) => regex.test(param)).forEach((param) => sampleRUM('email', { source: network, target: param }));
});
});
})();

0 comments on commit cfa8415

Please sign in to comment.