To do this I created a override Footer component the same as TableofContents. It's called FeedbackAnalyticsComponent.astro
Feelback addition.
<FeelbackMessage
contentSetId="a0d75f8f-e94b-4e67-ab72-8c595f37b914"
textAnswer="Thanks for your feedback"
withEmail
placeholder="Type your message"
/>
The script below adds umami analytics event to each nutshell click only if it's closed.
To do this I created a override Footer component the same as TableofContents. It's called FeedbackAnalyticsComponent.astro
Feelback addition.
The script below adds umami analytics event to each nutshell click only if it's closed.