@@ -5,7 +5,7 @@ import { Check, X, CheckCircle } from "lucide-react";
5
5
import Link from "next/link" ;
6
6
import { useState } from "react" ;
7
7
import { cn } from "@/lib/utils" ;
8
- import { TrackedButton } from "./TrackedButton " ;
8
+ import { trackEvent } from "@/lib/trackEvent " ;
9
9
10
10
// Available event tiers for the slider
11
11
const EVENT_TIERS = [ 100_000 , 250_000 , 500_000 , 1_000_000 , 2_000_000 , 5_000_000 , 10_000_000 , "Custom" ] ;
@@ -196,15 +196,14 @@ export function PricingSection() {
196
196
</ div >
197
197
198
198
< Link href = "https://app.rybbit.io/signup" className = "w-full block" >
199
- < TrackedButton
200
- eventName = "signup_click"
201
- eventData = { { location : "pricing" } }
199
+ < button
200
+ onClick = { ( ) => trackEvent ( "signup" , { location : "pricing" } ) }
202
201
data-rybbit-event = "signup"
203
202
data-rybbit-prop-location = "free"
204
203
className = "w-full bg-neutral-700 hover:bg-neutral-600 text-white font-medium px-5 py-3 rounded-lg border border-neutral-600 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-opacity-50 cursor-pointer"
205
204
>
206
205
Start for free
207
- </ TrackedButton >
206
+ </ button >
208
207
</ Link >
209
208
< div className = "space-y-3 mt-6 mb-3" >
210
209
{ FREE_FEATURES . map ( ( item , i ) => (
@@ -253,15 +252,14 @@ export function PricingSection() {
253
252
</ Link >
254
253
) : (
255
254
< Link href = "https://app.rybbit.io/signup" className = "w-full block" >
256
- < TrackedButton
257
- eventName = "signup_click"
258
- eventData = { { location : "pricing" } }
255
+ < button
256
+ onClick = { ( ) => trackEvent ( "signup" , { location : "pricing" } ) }
259
257
data-rybbit-event = "signup"
260
258
data-rybbit-prop-location = "standard"
261
259
className = "w-full bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-5 py-3 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer"
262
260
>
263
261
Try for free
264
- </ TrackedButton >
262
+ </ button >
265
263
</ Link >
266
264
) }
267
265
@@ -319,15 +317,14 @@ export function PricingSection() {
319
317
</ Link >
320
318
) : (
321
319
< Link href = "https://app.rybbit.io/signup" className = "w-full block" >
322
- < TrackedButton
323
- eventName = "signup_click"
324
- eventData = { { location : "pricing" } }
320
+ < button
321
+ onClick = { ( ) => trackEvent ( "signup" , { location : "pricing" } ) }
325
322
data-rybbit-event = "signup"
326
323
data-rybbit-prop-location = "pro"
327
324
className = "w-full bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-5 py-3 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer"
328
325
>
329
326
Try for free
330
- </ TrackedButton >
327
+ </ button >
331
328
</ Link >
332
329
) }
333
330
0 commit comments