A collection of examples showing how to utilize Consent Mode with Google Tag Manager.
A reference implementation meant to demonstrate how Tag Manager triggers and variables can be used to manage Consent Mode consent states in lieu of a CMP-provided template.
To edit the .tpl file, import it into Google Tag Manager (Templates/New then .../import). When done, export it.
For more information on Consent Mode, please see the following articles:
Consent Mode (Google Ads)
Consent Mode (Google Analytics)
Consent Mode overview (Developer Guide)
Manage Consent Settings (Developer Guide)
Create a Consent Template (Developer Guide)