From 6edf2869f8467ac701b6ab23cd439a34e4d4e38e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 27 May 2025 12:20:05 +0100 Subject: [PATCH] Add sql course purchase complete event --- src/components/ThankYou/ThankYouPage.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/ThankYou/ThankYouPage.tsx b/src/components/ThankYou/ThankYouPage.tsx index fa2cd371f..532316ba6 100644 --- a/src/components/ThankYou/ThankYouPage.tsx +++ b/src/components/ThankYou/ThankYouPage.tsx @@ -22,6 +22,12 @@ export function ThankYouPage() { if (decodedNextPage === '/courses/sql') { decodedNextPage = `${import.meta.env.PUBLIC_COURSE_APP_URL}/sql`; + + window?.fireEvent({ + action: 'sql_course_purchase_complete', + category: 'course', + label: 'SQL Course Purchase Completed', + }); } setNextPage(decodedNextPage);