INN / umbrella-rivard-report

The umbrella repository for the rrlargo WP Engine install
http://rrlargo.wpengine.com/
GNU General Public License v2.0
0 stars 0 forks source link

Capture emails from WordPress comments and integrate with MailChimp #7

Closed kaylima closed 7 years ago

kaylima commented 7 years ago

ESTIMATE: 4-6 hours

(previously, https://github.com/INN/umbrella-rivard-report/issues/10 was part of this ticket)

Go to http://rrlargo.staging.wpengine.com/

EXPECT: Add a MailChimp opt-in checkbox into the commenting form in WordPress, as shown here:

comment-email
benlk commented 7 years ago

Things I'll need:

The signup workflows would be one of:

  1. check box results in signing up upon submitting the form - How?
    • pressing the button submits two forms: comment form and signup form
    • pressing button for signup form kicks something off serverside using the MailChimp API that subscribes the person.
  2. after submitting a comment, prompt to sign up through actual Mailchimp form
  3. after submitting a comment, send them an email prompting to them to subscribe
benlk commented 7 years ago

For possibility 1, we can use the "Mailchimp for WP" plugin to do the signup: https://kb.mc4wp.com/add-list-choice-comment-form/

But that's hauling in the entire plugin for a very limited purpose.

Stackoverflow suggestions for something that submits two forms at once says that it either won't work or will be really weird for the user.

I think we can modify the WordPress comment emails to include a subscribe prompt, but I'm not sure what the particular WordPress function is.

benlk commented 7 years ago

RC suggested https://connect.mailchimp.com/integrations/chimpy-wordpress-plugin (https://codecanyon.net/item/chimpy-mailchimp-wordpress-plugin/6290216?ref=RightPress) which costs $29 for code and updates, and does the mailchimp signup in the comment box. This is lower cost than the previous plugin, in terms of time and configuration.

kaylima commented 7 years ago

NOTE: Updated, remaining estimate to use plugin mentioned by Ben above = 1-2 hours.

benlk commented 7 years ago

Installed on staging; added an api key to the plugin. The plugin claims that it is unable to connect to the API, but it also successfully lists RR's MailChimp lists, so I'm not sure what's going on there. Tested subscribe on http://rrlargo.staging.wpengine.com/how-to-balance-kid-fun-and-mom-fun-at-the-sa-book-festival/#comment-3775087 and it worked.

Configurable at Dashboard > Settings> MailChimp > Checkbox.

Looks like this works, with no styling needed.

Do we want to take this to production ahead of the rest of the changes in this batch?

kaylima commented 7 years ago

@benlk We want Rivard to review everything on staging and only move to production once we have sign-off from them. Thanks!

benlk commented 7 years ago

In response to their request that commenters be required to provide an email address when commenting - that's already the case (at least on staging). Settings > Discussion > Other Comment Settings > ☑︎ Comment author must fill out name and email

benlk commented 7 years ago

Deployed alongside #12.