File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import Arrow from '../../assets/arrow.svg';
44import { Code } from '../code' ;
55
66import { EmojiButton } from '../emoji-button' ;
7+ import { SplitbeeCounter } from './splitbee-counter' ;
78
89export const positions : Array < ToastPosition > = [
910 'top-left' ,
@@ -68,8 +69,6 @@ export const ToasterExample: React.FC<{
6869 : 'bg-white shadow-small-button'
6970 ) }
7071 key = { p }
71- data-splitbee-event = "Change Position"
72- data-splitbee-event-position = { p }
7372 onClick = { ( ) => {
7473 toast . success (
7574 < span >
@@ -80,6 +79,14 @@ export const ToasterExample: React.FC<{
8079 }
8180 ) ;
8281
82+ ( window as any ) . splitbee ?. track ( 'Change Position' , {
83+ position : p ,
84+ } ) ;
85+
86+ ( window as any ) . splitbee ?. track ( 'Trigger Toast' , {
87+ example : 'position' ,
88+ } ) ;
89+
8390 onPosition ( p ) ;
8491 } }
8592 >
You can’t perform that action at this time.
0 commit comments