Skip to content
Business Agile
← Work
App · Risk prevention, public awareness · Mar 2017

Quizz Paris

A quiz engine written for this project, on a clickable map of Paris.

Quiz design: the map of Paris districts and the current question

Key figures

clickable districts on the map20
questions, editable with no developer10
year of the campaign2017

EVEZ works on risk prevention and assessment. The project started from a simple, demanding idea: rather than explaining to visitors what they do not know, put them in a position to be wrong, then show them reality. The vehicle is a quiz, but its mechanics are not those of a form, and none of it was bought off the shelf. There is no quiz plugin here and no page builder: the engine, its data model, its tables and its endpoints were written for this project.

In pictures

Approved quiz design, map of Paris on the left and question on the right
The design approved in February 2017, found in the project archives. The question text is placeholder copy: what was settled here is the map of the twenty districts, the progress bar over ten questions and the newsletter sign-up.

The project in detail

The question is closed and its possible answers are the districts of Paris. Visitors do not pick from a dropdown: they click an interactive map. The selected district turns green if they were right, red if not, and the correct answer then appears in green beside it. The site then shows the real levels of each district, which give the measure of the gap, and the success rate for that question, computed from the answers already given.

That last point is what holds the whole thing together. The theme creates its own tables, one for the answers and one for newsletter sign-ups. Every answer is written there with its timestamp, the question id, the chosen answer id and a visitor id drawn from a cookie, with no account and no sign-up. A dedicated endpoint reads those rows back and returns the percentage shown to the next visitor.

An optional survey extended the quiz, to gather detail on the respondent's stance towards risk. It has its page on the site, but it was served by an off-the-shelf survey tool rather than rebuilt. That was the right split: the quiz was the bespoke piece, the one that existed nowhere else; a multiple-choice survey was not.

Ten questions, asked over the yellow map of the twenty districts embedded as SVG in the page. The questions and their answers are not written in the code: they live in repeatable admin fields, so the client could change them without us. Technically the site is a WordPress built with Bedrock and a Sage theme written for this project, with its own page templates. The repository carries one configuration file per environment, development, staging and production, a gulp chain for stylesheets and scripts, and a GitLab CI pipeline. For a mini-site that is a lot of rigour, and it is precisely what let the project take the traffic an awareness campaign was expected to bring.

The same year EVEZ entrusted us with hosting its application. We set up two virtual servers behind a load balancer, in a configuration where one server carries the whole load and the other takes over in case of incident. The choice between that strategy and an even split was settled with the client's technical director.

What was done

  1. 01

    Quiz engine written for the project, with no off-the-shelf plugin

  2. 02

    Quiz answered by clicking an interactive map of Paris

  3. 03

    Success rate computed from previous visitors' answers

  4. 04

    Ten questions and their answers editable from the admin

  5. 05

    Bespoke theme with dedicated quiz and survey templates

  6. 06

    Three environments and continuous integration for a mini-site

  7. 07

    High availability hosting: two servers behind a load balancer

Frequently asked questions

Can a questionnaire be answered in some other way than a form?

Yes, and it changes engagement. On Quizz Paris the answer is given by clicking a district on a map: visitors physically commit to a choice before finding out whether they were right. A dropdown would not have produced the same effect.

What is the point of storing a quiz's answers in a database?

It makes the whole set speak. Every stored answer feeds the success rate shown to the next visitor, and the data set stays usable by the client outside the site, to measure what the public believes it knows.

Does an awareness site need high availability infrastructure?

When a campaign can concentrate its audience into a few days, yes. For EVEZ we set up two servers behind a load balancer, one carrying the load and the other taking over on incident, rather than trusting the campaign to a single server.

Other work

A project? Let's talk this week.

A short brief, an answer within 48 hours, a firm estimate after scoping.

Describe my project