Jump to content

Better approach to implementing a User Survey Module

Recommended Posts


I'm trying to design a new User Survey functionality that allows a "User" to specify user surveys that pop up

  1. after a user clicks on an audio button
  2. after a user watched a video
  3. after visiting 5 pages on a site
  4. when users bounce 

etc etc

So basically the potential to launch a User Survey from various places under various trigger conditions.

I have already built User Survey capabilties where if the a particular User Survey field and certain trigger fields are filled in, it will trigger the user survey accordingly.

I'm not really happy with the current design as it's highly coupled at the moment and I feel the design is too brittle to accommodate changes that are drastic (oh, like the one I have above for example)

Has any one implemented any flexible User Survey functionality that has various triggering capabilities? I googled far and wide but I've not seen anything remotely close to what I'm looking for. All articles I've found seem to concentrate on designing the User Survey itself and not on the (smart) delivery of it.

Share this post

Link to post
Share on other sites

This sounds like an analytics / marketing type of problem, so maybe researching these types of solutions might help.

You will need some way of storing custom user actions - like “a user watches a video” or a “a user downloads a file” probably via javascript. These user actions could be stored in an analytic solution which are well designed to handle this type of data. You could then access the user analytics data via their api, and setup rules in your own code to show your survey based on certain criteria.

I’ve not researched this space for while, but from my previous experience Keen.io is a nice hosted solution for doing any type of custom event tracking, and also a good way to learn about these type of analytics systems. The documentation and api is easy to get started with and they have a very reasonable free plan (15 million events per month), which will probably cover most situations. 

Piwik is a stable open source hosted solution for analytics, and they also have a user events tracking feature. I don’t know how well it fares against some of the commercial solutions for tracking user events (like Mixpanel etc.) but is definitely worth a look

I was recently looking at an open source marketing application called Mautic and they classify this type of thing as a "Campaign". Maybe you can integrate Mautic into your own app or learn from their implementation how they solved a similar problem…


  • Like 1

Share this post

Link to post
Share on other sites

Not sure why I wasn't notified Michael when you posted, but in any case I came up with a rudimentary event injector that lets me inject various events that will trigger Survey events as specified.

I will definitely take a look at Keen, Piwik and Mautic if my solution has any shortcomings that we deem as critical. Thanks for the info!

Share this post

Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By jploch
      I just relaunched my portfolio website. It's my first ajax driven website using ProcessWire as a CMS.
      Its a showcase of some of my work as well as a digital playground to improve my coding skills.

      If you encounter any bugs or have feedback, feel free to share  

    • By elabx
      Hi everyone!
      I haven't seen a thread yet to talk about this aspect of development in which I have been reading on lately and I am very interested in this community's opinion/experience. 
      What are your perspectives/experiences on dealing with a UX/UI research process? Would you have resources/books/courses to recommend to learn about the topic?
    • By AndZyk
      Our agency website is not exactly new, because we relaunched it late 2014. At this time we have build it with the CMS Contao and Bootstrap as framework. Although I always liked our website, I was never quiet happy with it. Contao is a great CMS, but knowing ProcessWire it felt tedious managing content. Also it limited me as a developer.
      So the past months I have rebuild our website with ProcessWire and switched the framework to UIkit, because it made a good first impression on me and I wanted to learn it. Now I am happy with our website, because it is cleaner, faster, easier to manage and more optimized for search engines.
      Modules used:
      ProFields ProCache Map Marker Pages2JSON Markup Sitemap XML Tracy Debugger Email Obfuscation Regards, Andreas
    • By Beluga
      It is HTML based and javascript-enhanced
      Found via this discussion: https://github.com/opensourcedesign/resources/issues/16
    • By jploch
      Hey guys!
      I just launched my new online portfolio.
      This is my second site with PW and I really enjoyed working on it.
      Its in german, but I want to launch an english version soon (just have to figure it out).
      I would probably never have finished it without the help of this awesome community.
      Thanks for your support! Feedback appreciated.
      (The size of the Images are a bit heavy for mobile, I would like to improve that with "srcset" or the picture element, but Iam not sure how to do that with PW without multiple image uploads.)
  • Create New...