Skip to content

Commit 1b9c2f3

Browse files
metric(frontend) Add counter on estimator results (#244)
1 parent 513b1f4 commit 1b9c2f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/app/routes/estimator/results.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type {
1717
} from './@types';
1818
import { validMaritalStatuses } from './types';
1919

20+
import { createCounter } from '~/.server/utils/telemetry-utils';
2021
import { ButtonLink } from '~/components/button-link';
2122
import { ContextualAlert } from '~/components/contextual-alert';
2223
import { InlineLink } from '~/components/links';
@@ -105,6 +106,8 @@ export async function loader({ context, params, request }: Route.LoaderArgs) {
105106

106107
const meta = { title: t('common:meta.title.template', { title: t('estimator:results.page-title') }) };
107108

109+
createCounter('estimator.success.total').add(1);
110+
108111
return {
109112
meta,
110113
results: context.session.estimator as CDBEstimator,

0 commit comments

Comments
 (0)