I need to make an email opt-in form that pops up only when a visitor is not currently subscribed to our emails. So, the person would get an email from us, click on a link, and then when they get to our blog they would be prompted with a popup to opt in to our emails. The part I am struggling with is figuring out how the popup would "know" whether they are subscribed or not. Any ideas as to how this can be accomplished with Drupal? We use Eloqua for our emails and list management if that helps.

Comments

I'm almost certain that the solution to your problem is going to involve setting a cookie. There are some Drupal modules to work with cookies and here is a link to what appears to be the basic information: https://api.drupal.org/api/drupal/modules!user!user.module/function/user.... Remember that if the visitor has cookies turned off, this will not work but you could warn them of that when you present the opt-in window. Just my .02 ... good luck, Paul

Thanks! I will look into that.