Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix ev tracking

Blue Moused9f875a5c2c8
diff --git a/web/app/pages/Subscribe/Subscribe.tsx b/web/app/pages/Subscribe/Subscribe.tsx
index 5d77d9c3a..1d7ddcc78 100644
--- a/web/app/pages/Subscribe/Subscribe.tsx
+++ b/web/app/pages/Subscribe/Subscribe.tsx
@@ -29,7 +29,7 @@ import { Text } from '~/ui/Text'
import { Switch } from '~/ui/Switch'
import { cn } from '~/utils/generic'
import routes from '~/utils/routes'
-import { track } from 'swetrix'
+import { trackCustom } from '~/utils/analytics'
const INITIAL_VISIBLE_PLANS = 3
const formatEventsLong = (value: number, locale = 'en-US') =>
@@ -143,16 +143,13 @@ const Subscribe = () => {
])
const handleStartCheckout = () => {
- track({
- ev: 'SUBSCRIBE_START_CHECKOUT',
- meta: {
- plan: selectedPlan,
- billingFrequency: selectedBillingFrequency,
- currency: currencyCode,
- paddleLoadError,
- isPaddleLoaded,
- paddleWindowExists: !!(window as any).Paddle,
- },
+ trackCustom('SUBSCRIBE_START_CHECKOUT', {
+ plan: selectedPlan,
+ billingFrequency: selectedBillingFrequency,
+ currency: currencyCode,
+ paddleLoadError,
+ isPaddleLoaded,
+ paddleWindowExists: !!(window as any).Paddle,
})
if (paddleLoadError) {