How to collect user emails when they sign up


(Sami Syed) #1

How do I collect emails of users that sign up and send them to a mailing list (like mailchimp) for email marketing.
And setup something that makes the user agree to subscribe to the emailing list.

Also, is it possible to add a email opt in pop up and field to discourse?


#2

Although this has been requested many times, there are only workarounds to what you want, I think.

  1. Manually export the user list and import it to your mailing provider
  2. Sync your users to Wordpress via SSO, and then sync them from Wordpress to Mailchimp (or whatever mailing provider you’re using.
  3. Use this (currently broken) plugin that adds a webhook action on new user signups, and make Zapier add the user to whatever provider you use.

#3

Oh, and as for making the user agree, the first link above discusses how to add a checkbox on user signup, if the mailinglist membership is optional, or simply adding a notice to your signup page and/or your terms and conditions or something like that if it’s not optional.


(Bart) #4

Alternatively, use the Data Explorer and set up a cron job that posts a JSON feed to Zapier with the information you need. No other plugins required (but you do need to get your hands a little dirty on your server :wink:


(Sami Syed) #5
  1. But lets say I export users today. And get 15 new users tommorow. If I export again, will it export every single user? or will it only choose the ones that are new, is there an option for this? If not, will mailchimp recognize that that email has already been added, and not add it again?

  2. I cant do this because I am letting discourse handle my user logins

  3. If its broken, it wont work right now?


(Sami Syed) #6

I am using discoursehosting.com and they install all my plugins for me. So what exactly do you mean by get my hands dirty? Will the discoursehosting.com support team be able to successfully setup this plugin for me?


(Daniela) #7

Of course you have to ask the discoursehosting guys how they manage their hosting, not here on Meta.


(Richard - DiscourseHosting.com) #8

The Discoursehosting guys install the data explorer plugin by default on every forum, so you should be able to use that method if you host your forum with us.


(Jeff Atwood) #9

Be careful, because admins can query out cookies and password hashes with this tool. We actually don’t recommend that data explorer be enabled everywhere for that reason. At minimum it should be an “upon request, we will enable it for you” type thing, to reduce your total exploit surface area.


(Richard - DiscourseHosting.com) #10

Thanks for the advice.
Since we cannot disable/enable it on a per forum basis on multisite, we were (once) considering building a locked down version that does not support the “sensitive columns”, but we never got to it. Will put it higher on the to-do list :slight_smile: