Create an opt-in campaign. You can either create one on your own by using email marketing services like Mailchimp or use a lead automation tool such as OptinMonster. Choose the template for your campaign. Target your audience by using options such as page-level targeting, geolocation, onsite retargeting, and so on. Segment your leads once the data has been collected.