Thanks Philippe for your note. You’re right.
Am testing in a debug mode and in fact the problem is the name of the data layer which is dataLayer with GTM and _mtm with Matomo. That difference may cause trouble with some scripts.
Thanks,
I found the solution.
It was the difference between GTM and Matomo Tag Manager called datalayer by GTM and mtm_ by MTM.
Thanks again for your help.