From 38b40c03bf990dd4f85616c60841318fe6957a78 Mon Sep 17 00:00:00 2001 From: Rebecca Emmanuel Date: Mon, 7 Aug 2023 17:18:39 +0200 Subject: [PATCH] feat: add referer to statistics file --- src/pages/Statistic.tsx | 2 ++ src/types/registrationData.d.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/pages/Statistic.tsx b/src/pages/Statistic.tsx index a3202a0b..19be823a 100644 --- a/src/pages/Statistic.tsx +++ b/src/pages/Statistic.tsx @@ -34,6 +34,7 @@ export const Statistic = () => { 'relevant', 'plz', 'betend', + 'referer', ]); registrationStatistics.forEach(function createCsvLine(entry) { const csvLine: string[] = []; @@ -56,6 +57,7 @@ export const Statistic = () => { csvLine.push(entry.mainTopicInternalAttribute || ''); csvLine.push(entry.postalCode); csvLine.push(entry.endDate); + csvLine.push(entry.referer || ''); data.push(csvLine); }); diff --git a/src/types/registrationData.d.ts b/src/types/registrationData.d.ts index 7e6c1b2b..ec306daa 100644 --- a/src/types/registrationData.d.ts +++ b/src/types/registrationData.d.ts @@ -12,4 +12,5 @@ export interface RegistrationStatistics { mainTopicInternalAttribute: string | null; postalCode: string; endDate: string; + referer: string | null; }