Closed Bug 1133326 Opened 11 years ago Closed 11 years ago

Survey people after they have refreshed Firefox

Categories

(support.mozilla.org :: Knowledge Base Software, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED
2015Q1

People

(Reporter: atopal, Assigned: mythmon)

Details

(Whiteboard: u=sumo-team c=wiki p=1 s=2015.4 [fxgrowth])

On the product landing page and certain articles we let people refresh their Firefox directly from the web page. Once people click the refresh button, the Firefox UI takes over. After that process is finished Firefox is restarted and the last web page before the refresh is reloaded. We'd like to survey people who click the refresh button, then go through with it and have the SUMO page reloaded after the process is finished. The Surveygizmo ID for the survey is 2010802
Whiteboard: u=sumo-team c=wiki p= s=2015.4 → u=sumo-team c=wiki p= s=2015.4 [fxgrowth]
Whiteboard: u=sumo-team c=wiki p= s=2015.4 [fxgrowth] → u=sumo-team c=wiki p=1 s=2015.4 [fxgrowth]
Whiteboard: u=sumo-team c=wiki p=1 s=2015.4 [fxgrowth] → u=sumo-team c=wiki p=1 s=2015.6 [fxgrowth]
Target Milestone: 2015Q1 → 2015Q2
Oops, I moved the wrong bug.
Whiteboard: u=sumo-team c=wiki p=1 s=2015.6 [fxgrowth] → u=sumo-team c=wiki p=1 s=2015.4 [fxgrowth]
Target Milestone: 2015Q2 → 2015Q1
Assignee: nobody → mcooper
Sorry, I should have seen this earlier, but I don't think just an ID is enough for us to do this. In this past we had a snippet of code to show the prompt. At least, it included a title or a second ID that we need for the url. I can start working on choosing when to show this prompt to users, but I'll need the full snippet before I can finish this. Also, do we want to show this to 100% of users? Should it only be shown once, or if a user resets twice should they get the survey twice?
Status: NEW → ASSIGNED
Flags: needinfo?(a.topal)
While working on this, I realized that we made a pretty major mistake in planning this. My plan was to use a cookie or localstorage, or a similar mechanism to trigger this survey, by setting a flag before the refresh, and checking it on all pages. Unfortunately, both localstorage and cookies are reset by the Firefox refresh, so we lose this flag. Because of this, I think we need to go back to the drawing board with this. We will need some way to identify a user before and after the reset that is consistent. This would be trivial for signed in users, but I imagine that most of the users we care about are not logged in. I'm not sure how to do this in the general case, since we can't use cookies or local storage.
(In reply to Mike Cooper [:mythmon] from comment #3) > While working on this, I realized that we made a pretty major mistake in > planning this. > > My plan was to use a cookie or localstorage, or a similar mechanism to > trigger this survey, by setting a flag before the refresh, and checking it > on all pages. Unfortunately, both localstorage and cookies are reset by the > Firefox refresh, so we lose this flag. Cookies are something we explicitly keep during a refresh. > > Also, do we want to show this to 100% of users? Should it only be shown > once, or if a user resets twice should they get the survey twice? I don't think we want to show the survey to someone that has refreshed twice. That's a different situation and one not accounted for in the survey.
> Cookies are something we explicitly keep during a refresh. I double checked this. At first I thought I could still reproduce cookies being cleared. However, I realized that the cookie helper I was using, jQuery.cookie, defaults to session cookies, and so simply restarting the browser cleared them. Making them non-session cookies made them persist. So this is fine now. Thanks for pointing this out, Verdi. I still need a better URL for the survey.
Here's the JS for it: <script type="text/javascript" >document.write('<script src="http' + ( ("https:" == document.location.protocol) ? "s" : "") + '://www.surveygizmo.com/s3/2010802/69cc2a79f50b?__output=embedjs&__ref=' + escape(document.location) + '" type="text/javascript" ></scr' + 'ipt>');</script><noscript>This survey is powered by SurveyGizmo's <a href="http://www.surveygizmo.com">online survey software</a>. <a href="http://www.surveygizmo.com/s3/2010802/69cc2a79f50b?jsfallback=true">Please take my survey now</a></noscript>
Flags: needinfo?(a.topal)
Mike, we'd show this to 100% of the users for now.
I deployed this to prod just now. Kadir: There is a Waffle Sample to control this feature. It is currently set to 50%, which is the default for the migration so I could test it, but I'll go change it to 100% now.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.