Skip to content

Commit afe01fc

Browse files
committed
Rename generateRetentionMetrics
1 parent 46056ad commit afe01fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/js/background/components/abn-experiments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { sendPixelRequest } from '../pixels';
1717
/**
1818
* @returns {ExperimentMetric[]}
1919
*/
20-
export function generateBuildRetentionMetrics() {
20+
export function generateRetentionMetrics() {
2121
return ['app_use', 'search'].flatMap((metric) => {
2222
const metrics = [0, 1, 2, 3, 4, 5, 6, 7].map((conversionWindowStart) => ({
2323
metric,
@@ -133,7 +133,7 @@ export default class AbnExperimentMetrics {
133133
const cohort = this.remoteConfig.getCohort(featureName, subFeatureName);
134134
if (cohort && !cohort.enrolledAt) {
135135
cohort.enrolledAt = Date.now();
136-
cohort.metrics = (metrics || generateBuildRetentionMetrics()).map((m) => ({ ...m, counter: 0, sent: false }));
136+
cohort.metrics = (metrics || generateRetentionMetrics()).map((m) => ({ ...m, counter: 0, sent: false }));
137137
sendPixelRequest(`experiment_enroll_${subFeatureName}_${cohort.name}`, {
138138
enrollmentDate: new Date(cohort.enrolledAt).toISOString().slice(0, 10),
139139
});

0 commit comments

Comments
 (0)