Givewp: feat(admin-plugins): add a popup survey upon plugin deactivation

Created on 18 Jun 2016  路  16Comments  路  Source: impress-org/givewp

We've had a couple very negative reviews about the uninstall process leaving data behind after Give is deleted. Here's my suggestion to help those users:

We trigger a popup when the Deactivate link is clicked on the Give plugin.

That popup would say the following:

Deleting Give? Read this First.
By default the custom roles, Give options, and database entries are not deleted when you delete Give. If you are deleting Give completely from your website and want those items removed as well, first go to "Donations > Settings" then the "Advanced Options" tab and check the setting that says "Remove All Data on uninstall".

Do you want to go ahead with Deactivation?
[Yes] [Cancel Deactivation]

Tasks

  • [x] Add the popup survey form on deactivation using Give Modal API
  • [x] Create API endpoint (a separate addon) which will receive survey data and store data in the database.
  • [x] Test the whole feature.

Most helpful comment

This is the survey form after feedback -

Survey Form

surveyform

Dashboard (WIP)

surveystats

All 16 comments

Why not include the options in the popup? You can keep them in both places, or just have them in the deactivate popup. But to me, the popup seems to be the best place to present this decision to the user.

I'm not so sure about the message here. I'd rather our deactivation popup be more like how freemius handles the deactivation WITH the ability to specify deleting custom data.

Freemius' popup:

screen shot 2016-07-18 at 12 11 14 pm


My vision:

Deactivating Give

If you have a moment, please let us know why you are deactivating Give. All submissions are anonymous and we only use this feedback to improve the plugin.

  • I no longer need the plugin
  • I found a better plugin

    • What is the plugin's name?

  • I only needed the plugin for a short period
  • The plugin broke my site

    • We're sorry to hear that and offer free support of WordPress.org (link). Can you describe the issue?

  • The plugin suddenly stopped working

    • We're sorry to hear that and offer free support of WordPress.org (link). Can you describe the issue?

  • Other

    • Please describe why you're deactivating Give

(checkbox) Would you like to delete all Give data?
_By default the custom roles, Give options, and database entries are not deleted when you delete Give. If you are deleting Give completely from your website and want those items removed as well_

deactivation-popup

I love it. VERY informative, and I think users will appreciate the information. Let's do it!

@mathetos how about the form submits to a Google spreadsheet?

@DevinWalker Really don't think that's a long-term solution. Would prefer to store it properly in a database of some sort so it's portable and we can report the data any way we want. Also, I haven't been happy with the reliability of pushing data to GOogle spreadsheets.

@mathetos I agree, a spreadsheet seems janky at best. Let's plan on submitting to a custom endpoint on our website where to store the data in our db.

Take a look how @vovafeldman updated their deactivation popup:

  1. Randomized the order of the choices to improve data accuracy
  2. Allow for anonymous entries
  3. When the user choose "I didn't understand how it works", it shows a contextual "Contact Support" button with a direct link to a contact us page.

https://github.com/Freemius/wordpress-sdk/releases/tag/1.2.1

Very neat stuff...

This is the progress so far -

survey

It's looking good but not exactly like the concept above. For instance, the "G" icon is larger and the width of the modal is too slim. Can you match it up a little better @Sidsector9 ?

This is the survey form after feedback -

Survey Form

surveyform

Dashboard (WIP)

surveystats

Looking good @Sidsector9

@Sidsector9 @DevinWalker Nice progress. Are we still planning to provide the checkbox to delete Give data on deactivation? I think that was the original reason for the issue and want to make sure it doesn't get lost in the other feedback functionality.

@kevinwhoffman Yes we are going to provide the checkbox. That is the last part of the implementation of this whole feature.

Hi guys! Sorry to comment on an old thread. I've just added a deactivation form to my new plugin and was searching for an example stats dashboard I could check out. Yours looks great- do you have it available on github?

@menathor yes we do I can add you to the repo now

@DevinWalker Awesome, thanks so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

henryholtgeerts picture henryholtgeerts  路  3Comments

vukvukovich picture vukvukovich  路  4Comments

ravinderk picture ravinderk  路  4Comments

DevinWalker picture DevinWalker  路  3Comments

marutim picture marutim  路  4Comments