Consent banners should be used whenever you are collecting personal data that you intend to use for email marketing purposes. This can be when a user signs up for a newsletter, creates an account, or makes a purchase on your website. The banner should appear before any data is collected to ensure that consent is obtained beforehand.