From e3f912677f79d99df0756de9224840aca48c04d5 Mon Sep 17 00:00:00 2001 From: Tosin Moronfolu Date: Sat, 30 Mar 2024 21:51:19 +0100 Subject: [PATCH] add config file for posthog --- config/posthog.config.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config/posthog.config.ts diff --git a/config/posthog.config.ts b/config/posthog.config.ts new file mode 100644 index 0000000..4c70369 --- /dev/null +++ b/config/posthog.config.ts @@ -0,0 +1,20 @@ +const posthogConfig = { + routes: { + '/': { + events: { + page_view: {}, + button_clicked: { + properties: { buttonName: 'Hero Button' }, + }, + }, + }, + '/about': { + events: { + page_view: { properties: { aboutSection: 'Intro' } }, + form_submitted: {}, + }, + }, + }, +}; + +export default posthogConfig;