Starting from March 13, 2024 you have to use Google Consent Mode v2 to comply with the latest regulations
All you need to know about web Cookies.