Add sampling by country options to QuickSurvey.
= Precursors
An example survey will be necessary for us to build and test this survey.
**Why?**
* Sometimes we only need data from a specific country or region and sampling from all requests to get enough number of responses from the region is not an option (we will be asking a lot of users to provide data that we won't use.)
**What's already there?**
Client-side country information is available under window.Geo.country
= Acceptance criteria
[] A survey can be configured to target an editor in a certain country
= Sign off steps
We want to avoid the problem where when this survey goes live there is a problem with the implementation. We will want to sign this off with research carefully to avoid this happening.
= Developer notes
Window.Geo is defined in the CentralNotice extension:
CentralNotice/modules/ext.centralNotice.bannerController/bannerController.js
= QA steps
- Finish QA of T139317 and ping Jon to set this one up.
- When Jon confirms there will be a survey has been setup to only show for users with edit count between 1 and 22 for people from America and France
- Make sure you have an edit count between 1 and 22
- Visit https://reading-web-staging.wmflabs.org/wiki/Test_the_diff
- confirm survey doesn't show
- In your developer console make yourself "American" by running:
```
$.cookie( 'GeoIP', 'US:CO:Denver:39.6762:-104.887:v4' )
```
- confirm survey shows
- Make yourself Spanish:
```
$.cookie( 'GeoIP', 'ES:Catalonia:Barcelona:39.6762:-104.887:v4' )
```
- confirm survey doesn't show
- make yourself French
```
```
$.cookie( 'GeoIP', 'FR:Lille:39.6762:-104.887:v4' )
```
- confirm survey is showing again