How to integrate 3rd party consent tool with Piwik PRO anonymous tracking?

A post was split to a new topic: GTM and Piwik PRO anonymous tracking?