Google Consent Mode
Privacy regulations, such as the European Union's GDPR, restrict websites from gathering information about visitors without their consent. Users commonly provide consent by interacting with a consent banner. Depending on how your products are configured, Google uses mechanisms such as cookies or HTTP requests that include user data to support analytics, conversion measurement, and remarketing.
You can configure these mechanisms to be consent-aware. When consent-aware, tag functionality depends upon the level of consent. For example, you can configure Google tags to not write or read cookies until the user provides consent. When a visitor grants consent, it restores tag functionality, based on the behavior you configure.
The short guide below will take you through how Consent Mode works and how to implement it on your website.
You have to place the code below before the </body></html> at your index.php of your current template.