File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ export const FeedbackPopover = () => {
28
28
} ,
29
29
} )
30
30
31
+ const handleAnchorClick = ( ) => {
32
+ if ( window . plausible ) {
33
+ window . plausible ( 'Clicked through to feedback' , {
34
+ props : {
35
+ location : document . location . pathname ,
36
+ } ,
37
+ } )
38
+ }
39
+ }
40
+
31
41
return (
32
42
< Popover style = { styles } >
33
43
< PopoverContent >
@@ -48,7 +58,11 @@ export const FeedbackPopover = () => {
48
58
< PopoverTitle > Struggling to find what you want?</ PopoverTitle >
49
59
< PopoverCopy >
50
60
{ `We're interested in hearing your feedback for our documentation! Have your voice heard by commenting in this ` }
51
- < a href = "https://github.com/pmndrs/react-spring/issues/1799" > issue</ a >
61
+ < a
62
+ onClick = { handleAnchorClick }
63
+ href = "https://github.com/pmndrs/react-spring/issues/1799" >
64
+ issue
65
+ </ a >
52
66
</ PopoverCopy >
53
67
</ PopoverContent >
54
68
</ Popover >
You can’t perform that action at this time.
0 commit comments