CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Net Promoter Score extension - any volunteers to help?
Pages: [1]

Author Topic: Net Promoter Score extension - any volunteers to help?  (Read 647 times)

Tony Horrocks

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 7
    • Fabriko Limited
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7
Net Promoter Score extension - any volunteers to help?
August 25, 2015, 02:36:39 am
The extension does two things

It creates a custom field that asks the question ”Would you recommend membership of this organisation to anyone else”
with  0-10 response scale.
The custom field can be added to profiles or sent out in newsletter and the organisations will obviously get responses.

The second thing the extension does is create a CiviCRM report template.
Basically the template allows Admins to create report instances that can be mailed out, put on a dashboards and so on.
So for example, an organisation might be managing two sorts of memberships, so they will need two report instances, each derived from the master template.

You will see that a membership report normally provides a bunch of columns that are displayed in the results.  We actually need to do some counting, rather than displaying a list of contacts.

From these counts we can calculate the Net Promoter Score.
 
Net Promoter Score calculation.
The calculation gets the percentage from people who respond to the question who responded 0-6 (A)  and the percentage who responded 9-10 (B)
We subtract B from A to get the Net Promoter Score.

We display the Net Promoter Score as the report.

Ive done the easy bit which is to create the extension and the custom fields.

But Im stuck on the hard bit which is the SQL and the output.

Anyone fancy assisting?

If you want more info on Net Promoter Scores, look here

http://www.netpromoter.com/why-net-promoter/know
Tony Horrocks
Author of the CiviCRM CookBook https://www.packtpub.com/web-development/civicrm-cookbook

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Net Promoter Score extension - any volunteers to help?
August 25, 2015, 04:58:48 am
Neat idea.

Tony Horrocks

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 7
    • Fabriko Limited
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7
Re: Net Promoter Score extension - any volunteers to help?
August 25, 2015, 05:01:41 am
I should add, I'm not doing this for a particular client, just doing it because I think it's a good thing to have.
Tony Horrocks
Author of the CiviCRM CookBook https://www.packtpub.com/web-development/civicrm-cookbook

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Net Promoter Score extension - any volunteers to help?
March 10, 2016, 10:15:25 am
Hi Tony,
Could you share the url for the repo? I'd like to see how your extension is creating the custom field. Also, I'm not clear on why you are putting this in Membership detail report. If I understand correctly, you would like the calculated Net Promoter Score to go in the Statistics section of that report?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Net Promoter Score extension - any volunteers to help?

This forum was archived on 2017-11-26.