How to override the function of visitor creation in Matomo?

hi team I am using Matomo (Cloud), can you please tell me how can we override the function of (Visitor creation) just after visitor creation in Matomo, I want to insert that visitor into my DB.

@V.K sorry I am tagging you here ,
but I am struggling to find out this from a long,
can you please redirect me to the correct person for this issue.

Thanks