Event-Tracking Cookie Banner

I want to install the Java Script Tracking Code and now I am not sure, whether I need the Cookie Banner and the cookie consent or not? Can somebody help me, please?
Thanks and regards,

If you don’t use cookie for tracking, then no need of cookie banner.
In other cases: