From 3722a9b01c4c5cc47290b57da989e5cb3df20e5e Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 17 Jun 2024 10:27:00 +0200 Subject: [PATCH] feat: track campaign --- src/routes/console/apply-credit/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/console/apply-credit/+page.svelte b/src/routes/console/apply-credit/+page.svelte index 5db19dea1..4395538f1 100644 --- a/src/routes/console/apply-credit/+page.svelte +++ b/src/routes/console/apply-credit/+page.svelte @@ -140,7 +140,8 @@ await sdk.forConsole.billing.updateTaxId(org.$id, taxId); } trackEvent(Submit.CreditRedeem, { - coupon: couponData.code + coupon: couponData.code, + campaign: couponData?.campaign }); await invalidate(Dependencies.ORGANIZATION); await goto(`/console/organization-${org.$id}`);