Tracking of live chat (Zendesk)

Hello, I was wondering how to track Zendesk chat or any live chat in Matomo the way GA4 does it ? Like on GA4 I have events like “Chat served by an operator” that I can put as a goal but I don’t know how to make the same for Matomo.

If you have any clues, it would help me a lot, thanks.