Starting from March 13, 2024 you have to use Google Consent Mode v2 to comply with the latest regulations
Tips and tricks on how to create a perfect consent banner for cookies.