Is it possible to share datalayer between google tag manager and matomo?

I use google tag manager and I’m going to use matomo.
so i’d like to check datalayer.
I push “test” text to datalayer in google tag manager and i check “test” text in matomo datalayer but i can’t find it.
So i wonder Is it possible to share datalayer between google tag manager and matomo or there are some other solution