@@ -351,7 +351,7 @@ Make sure you use the same `<SDK_WRITE_KEY>` for both your website and your app.
351351
352352 useEffect (() => {
353353 // Track a custom event
354- analytics .track (' Swap Completed' , { points : 100 });
354+ analytics .track (' Swap Completed' , { volume : 100 });
355355 }, [analytics ]);
356356
357357 return <div >Welcome to the Home Page!</div >;
@@ -391,7 +391,7 @@ Make sure you use the same `<SDK_WRITE_KEY>` for both your website and your app.
391391 For everything else, use the [ ` track ` ] ( /data/events/track ) function to track custom user actions specific to your app.
392392
393393 ``` html
394- <button type =" button" onclick =" window.formo.track('Swap Completed', { foo: 'bar' })" >
394+ <button type =" button" onclick =" window.formo.track('Swap Completed', { volume: 100 })" >
395395 Track event
396396 </button >
397397 ```
@@ -467,7 +467,7 @@ Make sure you use the same `<SDK_WRITE_KEY>` for both your website and your app.
467467
468468 useEffect (() => {
469469 // Track a custom event
470- analytics .track (' Swap Completed' , { points : 100 });
470+ analytics .track (' Swap Completed' , { volume : 100 });
471471 }, [analytics ]);
472472
473473 return <div >Welcome to the Home Page!</div >;
@@ -627,7 +627,7 @@ Make sure you use the same `<SDK_WRITE_KEY>` for both your website and your app.
627627
628628 useEffect (() => {
629629 // Track a custom event
630- analytics .track (' Swap Completed' , { points : 100 });
630+ analytics .track (' Swap Completed' , { volume : 100 });
631631 }, [analytics ]);
632632
633633 return <div >Welcome to the Home Page!</div >;
@@ -770,7 +770,7 @@ Make sure you use the same `<SDK_WRITE_KEY>` for both your website and your app.
770770 private readonly formo = inject (FormoAnalyticsService );
771771
772772 onSwapCompleted(): void {
773- this .formo .track (' Swap Completed' , { points : 100 });
773+ this .formo .track (' Swap Completed' , { volume : 100 });
774774 }
775775 }
776776 ```
0 commit comments