In what pertains to the EU, that might not be legal and may lend you in trouble. If you haven’t yet, you should make sure you’re allowed to do that (or even better, don’t do it).
Good point, thanks, I missed that! TBH I need to brush up on GDPR law. FYI The website itself is not using any cookies, but GA and the Crisp chat are using them.