Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a user survey on resourcedata.org #268

Open
deirdrelee opened this issue May 15, 2019 · 37 comments
Open

Create a user survey on resourcedata.org #268

deirdrelee opened this issue May 15, 2019 · 37 comments

Comments

@deirdrelee
Copy link
Collaborator

Add user testing component: implement redirection to an optional survey to be taken when datasets/documents are downloaded, and provide guidance on survey content.

  • NRGI will provide survey monkey link
  • Popup to appear when user clicks on 'download' resource
  • Use cookie to ensure user isn't asked to complete survey repeatedly
@t-morrison
Copy link
Member

t-morrison commented May 15, 2019

WHEN TO TRIGGER SURVEY

Goal: get maximum number of users to engage with survey; don't be annoying

User evaluation

YTD Google Analytics top-level stats:
image

YTD Google Analytics events overview:
image

  • What is the "Resource" event? Is it clicking on a resource? Could it be CSV downloads or some other accesing of the EITI data? I have probably downloaded the EITI data more than 140 times, but always using the link and not the download button (I also might be excluded from tracking, still CSV has a low number). How can we figure this out? UPDATE: I was not able to locate the "Resource" tag on Google Tag Manager; I did see all the other tags.

Takeaway

This is a significant number of downloads, with or without the "Resource" event. Still, a lot of visitors are coming to the site and visiting multiple pages without downloading anything.

Potential triggering events:

  • From resource page, click "Download" button or download URL [definitely]
  • From dataset page, click "Download" option from "Explore" dropdown [definitely]
  • Visiting any resource page [maybe]
  • Visiting any dataset page [probably not]
  • Visiting multiple pages [maybe]
  • Spending X seconds on the site [maybe]

My thoughts

I like the idea of triggering on downloads with a large popup-type event. I also would like to try and gather responses from users not downloading, but a site-obscuring popup seems overly intrusive in this case. Some kind of slide-out corner modal to prompt users after they visit X number of pages or spend a certain amount of time on the site appeals to me. Deirdre made a counterpoint in our call that we want them to take the survey, so why obscure it.

@t-morrison
Copy link
Member

Link to draft survey via Google forms: https://docs.google.com/forms/d/e/1FAIpQLScEPUnBIoFTGIiZPFX5Sqj66Xdrw1dm6XR5KjdEBsfl2JDsCA/viewform?usp=sf_link

I have taken some questions and inspiration from the data.gov.ie survey.

@EricSoroos
Copy link
Collaborator

Do you want this to run on Google Forms or survey monkey?

@t-morrison
Copy link
Member

Google Forms unless there is a compelling reason to use survey monkey (is it more reputable?)

@EricSoroos
Copy link
Collaborator

No, clarification. The first message said survey monkey, and the last a google link.

@t-morrison
Copy link
Member

Right. We will stick with Google Forms, then.

@jodiegardiner
Copy link
Collaborator

Hi Tommy. I'm going to be working on the survey implementation tomorrow. I suggest I start with the "definitely" triggers and we'll see how it looks from there. So that will be both ways of triggering a download, using Google Forms.

@t-morrison
Copy link
Member

@jodiegardiner any progress here?

@jodiegardiner
Copy link
Collaborator

jodiegardiner commented Jun 14, 2019

@moman822

I've added a popup to the download buttons on the resource and dataset pages inviting users to fill out the survey and a cookie that will prevent a user being spammed again when they next download a res. Currently with a 30 second expiry time so you can test.

http://nrgi.staging.derilinx.com/dataset

How often would you like to prompt users to fill out the survey? Once per day?

@t-morrison
Copy link
Member

@jodiegardiner With Deirdre we discussed them only being offered the survey one time. I think that is OK or else maybe set it for 60 days or something? Do you have a thought?

@deirdrelee is there any perspective from the data.gov.ie implementation that would be helpful?

Can you also link the site to have a look? I don't see anything on staging.resourcedata.org. Thanks.

@jodiegardiner
Copy link
Collaborator

jodiegardiner commented Jun 14, 2019 via email

@t-morrison
Copy link
Member

Ok, I see the popup. It looks good! There seems to be an issue for certain types of filetypes though, PDFs specifically. When I click the download button for a document (e.g. here) I do not get the popup. Could be related to how it downloads, because when I use that button in Chrome & Firefox the PDF just opens up right in the browser (same tab).

@jodiegardiner
Copy link
Collaborator

I've sorted that now. All downloads now set to target="_blank" which means in the case of PDFs and other file types which want to open in the same browser tab, they will now open in a new tab instead, leaving the survey popup there. It was actually popping up but was being undone by the window moving on to the PDF.

@t-morrison
Copy link
Member

Great, thanks. What about with this link, which is on all the RGI source library pages? Possible to add there as well? I believe that is part of the resource description metadata, so not sure if we can get at it without reloading every document with a new schema.

image

@t-morrison
Copy link
Member

@jodiegardiner some comments on the modal itself:

  • Move the modal further towards the center of the screen
  • Swap the header color and button color on the modal
  • Increase modal width about 75%
  • Change header text color to black
  • Increase the font-weight in the modal header slightly
  • Change the header & body text as seen in image

image

@jodiegardiner
Copy link
Collaborator

No problem. And yes, can add it to the url string too as per your previous comment.

@jodiegardiner
Copy link
Collaborator

Hey,
All the discussed changes have been implemented now.

@t-morrison
Copy link
Member

Same target="_blank" issue with the URL link as before. I see the popup flash before redirection.

@t-morrison
Copy link
Member

Let's also do a new tab for the "Yes" button on the modal. And please increase the top margin on the modal-dialog as well, preferably to a point where the header of the modal overlaps somewhat with the main blue navigation bar.

@jodiegardiner
Copy link
Collaborator

target="_blank" added to Yes button and to the url string.

I added 160px top margin to the dialog. That makes the top of the modal overlap the header bar on the resource page. Let me know if that needs tweaked further.

@t-morrison
Copy link
Member

Looks great!

A final tweak to the body text:

"Your feedback is important. Help us improve ResourceData.org by taking a short survey."

When I test, it wraps the line after "..ResourceData.org ", if for some reason it returns before "resourcedata.org", please increase the width slightly.

@jodiegardiner
Copy link
Collaborator

Made modal a few pixels wider as it did indeed wrap for me. Body text changed as advised. Good to go?

@t-morrison
Copy link
Member

@jodiegardiner I think it looks great.

Final issue we did not settle on: cookies

I would like users to be prompted only once.

@t-morrison
Copy link
Member

With that settled, should we push to staging.resourcedata.org and plan on going live tomorrow or Wednesday? I will just be running the setup past the team here one last time.

@t-morrison
Copy link
Member

@jodiegardiner some last changes and then let's push to staging.resourcedata.org?

Text change on body: "Your feedback is crucial to us." to "Your feedback is important to us."

Text change on button: "YES I'LL HELP" to "YES" (keep the button width the same though)

@jodiegardiner
Copy link
Collaborator

jodiegardiner commented Jun 26, 2019

Hi @moman822

I've implemented those changes. It is not possible to set a cookie to never expire so instead I set it to expire in 10 years, effectively the same thing in this case.

I'll push that to staging now.

@jodiegardiner
Copy link
Collaborator

And deployment successful.

@t-morrison
Copy link
Member

So one concern from the team is regarding how for all PDF downloads, the download is just opening the document in a new browser tab and you are redirected automatically to that tab, while the survey prompt opens in the original tab. This could cause people to miss the survey prompt if they just exit the original tab without returning. Are there any fixes possible in this case, like to delay the new tab opening or trigger that only when clicking out of the modal? Or prevent switching to the new tab?

@t-morrison
Copy link
Member

@jodiegardiner any ideas on the above issue?

@jodiegardiner
Copy link
Collaborator

Hi Tommy. My solution was to add the "download" attribute to the anchor if the file format is pdf. This downloads the pdf in the background whilst the survey popup remains in the foreground.

I made sure both the resource page and the resource list on the dataset page exhibit this behaviour.

@jodiegardiner
Copy link
Collaborator

Note for testing, the cookie has a 10 year expiry so judicial use of incognito windows/cookie purges may be required.

@t-morrison
Copy link
Member

Hi @jodiegardiner , that sounds like a good solution but I am not seeing it work as described on either staging site. Can you confirm it is working as you've described? Thanks.

@jodiegardiner
Copy link
Collaborator

Hi Tommy,

I was ccertain I had thoroughly tested this but I got the same behaviour as you today. I did some investigation and the download attribute will only work for same-origin URLs. That's fine and in our case means they'll work just fine BUT if you start on an nrgi.staging.derilinx.com page instead of a http://li1665-139.members.linode.com/ page then we'll encounter that limitation as the browser thinks the origin and the destination are not on the same server.

http://li1665-139.members.linode.com/dataset/1eb9678e-2144-4616-8f85-babdcbb2ccf7/resource/09fd5817-38b6-4621-b144-b9b620ac69dd/

Try the above link to see that in action.

@t-morrison
Copy link
Member

@jodiegardiner works for me on the download button from the resource page. Can you also add the attribute to the download button from the "Explore" dropdown on the package page? Once that is done, let's push to production and wrap this up! Thanks.

@t-morrison
Copy link
Member

@jodiegardiner can we finish this up today?

@t-morrison
Copy link
Member

@jodiegardiner I have just noticed that the incorrect download behavior (new tab opening) is occurring for the RGI documents. Based on your comment above, I guess this is a "same-origin" issue because the RGI docs are hosted on an s3 bucket. Is there a workaround?

@jodiegardiner
Copy link
Collaborator

Hmm, I'll have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants