Tag Manager and consent with Silktide Consent-Manager

I am currently implemented Cookie consent on my blog with the Silktide Constent-manager script and I am using the Matomo Tag Manager tag for Matomo tracking. I have used the examples for Klaro CMP as a guideline and added the push operations to the Cookie-Banner code, that does not have the expected effect since it does not disable the cookies of the standard Matomo pageview.

I assume I either need an additional variable to pass in the Tag manager config or I need a conditional call of the Matomo pageView tag to get rid of it completely.

Do you have an example for using a CMP script together with Tag Manager?

Ok, I found my issue after trying a few variations. I used the variable _mtm for the push operation since I though that was used to communicate with the tag manager, but it is the variable _paq, which is correct, it is used in any example. After changing that, the switch works fine.