There are different ways in which events can be captured using Posthog(Ph).
There are 30 events that can be captured using Ph for feedback module.
The following are the various events for feedback,
24 events can be captured using Ph toolbar itself, i.e without sending events manually from EN client side.
The events 19-24 can be captured via JS code manually, because,
When there is an error in the share feedback modal box like not selecting the category, not giving the type & then clicking submit would eventually capture the data in Posthog but the feedback would not have been created itself, there would be no validation for the submit actions of any module per se. If we do it via JS manually, it is just a single line of code, posthog.capture('Shared feedback'); in the success callback submit feedback If we do it like this ,then we can also analyse the feedbacks filtering by category, type, etc. cross organisations. This will make our manual querying trivial & make us build easy & fast dashboards. All it needs is, posthog.capture('Shared feedback', {type: 'Good work', cateogry: 'Communication'});