govCMS / GovCMS7

Current stable release of the main Drupal 7 GovCMS distribution, with releases mirrored at https://www.drupal.org/project/govcms
https://www.govcms.gov.au/
GNU General Public License v2.0
113 stars 76 forks source link

Collect user feedback per page #556

Open aleayr opened 6 years ago

aleayr commented 6 years ago

Formalising this request for a customer:

User story As a site editor/administrator, I'd like to collect user feedback per page in the form of a question (such as "Was this page helpful?") so I can improve the content and site for consumers.

Backstory A feature was developed for a customer website and with a platform change not allowing direct execution of PHP code using AJAX, this feature no longer works. The ideal scenario would likely be a module to allow capture of YES/NO and a comment for the reasons.

Noting there are services that offer this via a JavaScript implementation, but have data sovereignty/privacy implications, it would be worth investigating this further.

Podgkin commented 6 years ago

We use Google Analytics custom events for this, not sure if that passes your privacy test. I wonder how sensitive the usefulness of a page really is.

tobybellwood commented 6 years ago

An example running on SaaS is at https://www.budget.vic.gov.au/priority/education - maybe someone can share how they did it?

mgdhs commented 6 years ago

We built this for our site recently.

Our original implementation was just a webform block. You should be able to do that out of the box with govCMS as it is now. There were some instructions floating around from a department on SaaS.

That had a few limitations because it only records the answer in the CMS. It was difficult to get to and couldn't be combined with any other data.

As @Podgkin said, we flipped it around to record as a Google Analytics Event. It still uses webform to create the question, fields and block. We use a bit of JavaScript we wrote to intercept the submission and send it to GA. This has huge advantages since you can see who thought a page was useful on mobile vs desktop or in a whole area of the site or over time. It becomes incredibly powerful. It'll only work if you have Google Analytics though.

Maybe the solution is some documentation and this optional JS with configuration.