
Data analysis, lCompleteness of the data in question
In our projects, it is common for professions to question us about theeffective use of the digital solution in place or da specific feature. To answer it, we must carry out data analysis available in the Digital Analytics solution used. Cis at this time that gaps may appear: the data is not present or only partially.
Possible causes can be:
- The marking plan nwas not made to meet this request;
- In the previous sprint the UI (User Interfaces) have been reviewed and the N markingdid not follow;
- Cis a new need;
- Cis an identified need, but:
- Not defined as important and priority in the Product Backlog;
- lmarking effort is too large and the functionality is not sufficiently sustainable to invest time in the deployment ofA tracking.
In this context, the first response to the trades is to say that the current marking does not cover this need, then, in a second step, to say that the correction by LAdded dEffective tracking will allow you to have the data in a few weeks…
However, when the trades ask us this question, they hope for a response preferably within a reasonable period of time over the elapsed time. However, an addition of tracking will not allowGet retroactive data directly.
using the data dUX Metric We are going to offer you a simulation of this scenario and present to you a technological solution capable of solving a few similar cases.
The immediate prerequisite for this solution is that the measurement to be taken requires theUse of data present in the pages and screens of the digital medium or accessible by reconciliation (query DAPI or Da web service to get theMissing Information: Key Relationship -> Value).
Data analysis, the practical case
On UX Metric, we have a basic marking on Google Analytics, we follow the kpi Standards. Recently, we wondered about our section containing books that sTitle “References” or “Library” depending on the version of the available page (A/B test in progress to validate the names of our sections).
We want to know:
- Which of the two authors (Guillaume Deconde and Grégory Loth) of the site offers the most viewed book pages?
- what is thePublisher Who gets the most visibility through book sheets?
To answer these questions, the marking must take into account the data “author of each content” and “editor of each book”, which does notis not the case. This measure must be implemented by theAdded two additional custom dimensions to qualify the page dimension and thus allow the metrics to be transposed (page views, unique views, etc.) initially associated with the page to theauthor and theEditor.
If we integrate these elements as they are, we nwe will have no actionable data for a few weeks. However, we know that the information necessary for these analyzes is now available in the content of each page.
We will therefore enrich the analytics data available with the information present in the measured pages and use theGoogle Data Wrangling Tool Open Refine to consolidate everything.
whatIs Open Refine?
Open Refine is a project initially launched by Google in 2010 in the form ofFree software (BSD: Berkeley Software Distribution License) and intended for data preparation and cleaning. Two “languages” are made available to process the Jython data (cross between Java and Python) and GREL (General Refine Expression Language, a kind of JavaScript).
How are we going to use Open Refine?
Preparing for our experience
For the treatments of this example we will use GREL.
For each of the two authors and for all publishers, we want to quantify:
- Pages / sheets Books Views
- Unique views
- The entrees
We start by exporting Google Analytics data for pages with books. ¨For clarity, we add the title of the page that will allow us toObtain the pull from the book by extraction.

We then export the Google Analytics data in CSV format, byinterface or via theapi

If Lexport is carried out via theGoogle Analytics interface, we will have to edit the file in Excel or Google Sheet and clean up the superfluous lines (we prefer Google Sheet for its opening up its complementarity with other Google products and the power of the complete GG solution, cf. Google Data Studio (Looker) for example).
In lExample above, the first 6 rows of the file and the second daily detail table below the main table.
passing byAPI, this first cleaning nis not useful, we access the necessary information directly.
How to import data into Open Refine?
For the purposes of this presentation and to carry out current analyzes we havelocal authorities dOpen Refine on our Macs.
We then import our CSV file and initialize our project. Once the parameters are set, we validate theHelp from Validation button located at the top right “Create Project”.

We observe in passing the options offered by the solution, the complete documentation ofOpen Refine is available on GitHub: https://github.com/OpenRefine/OpenRefine/wiki/Documentation-For-Users
To enrich the data we create new columns of data. each column creation sperformed on the basis ofa reference column. The value of the new column data will be for each row equal to the transformation of the row value of the reference column.
Simple treatments with GREL
Let’s operate a simple processing to start, we will extract the title of the book from the title of the page. We declare a new column whose data will beExtracting the value from the previous column.
“Add a column on the basis of this column”

We want to keep the first value of the array returned by the”Split” string cutting instruction on the “-” character.

Formula: value.split(“-“)[0];
Open Refine and web scraping
To continue, we needEnrich our dataset with external data. We have the URLs of the pages, so we will suck the contents of these web pages.
We therefore create a new column based on the “page” column, and specify that we will retrieve the content dA URL.

lAspiration dan HTML pagePerforms by making a GET on this page and assigning the value of this GET to a new cell, i.e.https://www.uxmetric.com/wp-content/uploads/2019/10/uxmetric-livres-google-analytics-1.png”+value

Once the configuration is made, clicking on “OK” we apply this setting to theAll of our dataset

As a result, here is the new column created:

We will then browse the recovered HTML at thehelp of the “parseHTML” function and the “select” function, to perform theExtraction of theauthor of the post. We add a column based on the column containing the HTML code, then we will do the same with lEditor.

Now let’s use theChrome code inspector to browse theHTML tree pages of the uxmetric.com site and thus define the selectors that allow dAccess the data (tree path from the code from the top of the document to the data). We access the author data by the path of class css “.vcard .fn”

Once the selectors are defined, we use them in our “select()” function to select our data.

We can then add a “faceted navigation” to our data to get a first quick read.
On the left an area appeared, it presents the number of results for the two authors.

We then do similar work for editors, adding a column based on the recovered HTML, then filtering this code to get the desired value.

Once the order is applied, we get:

At this stage, by exporting our work, we obtain a file presenting the data necessary to answer the questions asked initially.
| Page | Editeurs | Auteur | Titre de page | Pages vues | Vues uniques | Temps moyen passé sur la page | Entrées |
|---|---|---|---|---|---|---|---|
| /livres/uxdesign/ | Dunod | Guillaume Deconde | UX design & ergonomie des interfaces - Design - Mesurer l'expérience utilisateur - UX Metric | 30 | 14 | 00:00:58 | 2 |
| /livres/the-design-of-everyday-things/ | Basic Books | Guillaume Deconde | The Design of Everyday Things - Design - Mesurer l'expérience utilisateur - UX Metric | 16 | 10 | 00:01:24 | 6 |
| /livres/statistiques-appliquees/ | ellipses | Guillaume Deconde | Statistiques appliquées - | 14 | 7 | 00:00:04 | 6 |
| /livres/show-me-the-numbers/ | Analytics Press | Guillaume Deconde | Show me the numbers - Data - Mesurer l'expérience utilisateur - UX Metric | 10 | 7 | 00:00:25 | 6 |
| /livres/comprendre-et-realiser-les-tests-statistiques-a-laide-de-r/ | de Boeck | Guillaume Deconde | Comprendre et réaliser les tests statistiques à l'aide de R - Data - Mesurer l'expérience utilisateur - UX Metric | 9 | 5 | 00:00:03 | 3 |
| /livres/lean-analytics/ | O’Reilly Media | Grégory Loth | Lean Analytics - Data, English, Marketing - Mesurer l'expérience utilisateur - UX Metric | 8 | 3 | 00:01:02 | 0 |
| /livres/python-pour-le-data-scientist/ | Dunod | Grégory Loth | Python pour le data scientist - | 8 | 4 | 00:00:05 | 0 |
| /livres/statistiques-appliquees/ | ellipses | Guillaume Deconde | Statistiques appliquées - Data - Mesurer l'expérience utilisateur - UX Metric | 8 | 4 | 00:00:03 | 3 |
| /livres/statistiques-en-sciences-humaines-avec-r/ | de Boeck | Guillaume Deconde | Statistiques en sciences humaines avec R - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 8 | 3 | 00:00:11 | 2 |
| /livres/927/ | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 7 | 3 | 00:00:06 | 1 |
| /livres/eloge-du-changement/ | Pearson – Village Mondial | Grégory Loth | Eloge du changement - Changement, management - Mesurer l'expérience utilisateur - UX Metric | 7 | 4 | 00:00:28 | 2 |
| /livres/lauto-qui-nexistait-pas/ | Dunod | Grégory Loth | L'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric | 7 | 3 | 00:00:20 | 1 |
| /livres/methodes-statistiques-en-sciences-humaines/ | de Boeck | Guillaume Deconde | Méthodes statistiques en sciences humaines - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 7 | 4 | 00:00:04 | 3 |
| /livres/python-pour-le-data-scientist/ | Dunod | Grégory Loth | Python pour le data scientist - Data - Mesurer l'expérience utilisateur - UX Metric | 7 | 4 | 00:01:29 | 0 |
| /livres/la-laideur-se-vend-mal/ | Gallimard | Grégory Loth | La laideur se vend mal - Design - Mesurer l'expérience utilisateur - UX Metric | 6 | 3 | 00:00:04 | 2 |
| /livres/penser-la-communication/ | Grégory Loth | PENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric | 6 | 5 | 00:07:02 | 2 | |
| /livres/psychologie-statistique-avec-r/ | edp sciences | Guillaume Deconde | Psychologie statistique avec R - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 6 | 3 | 00:00:03 | 2 |
| /livres/intelligence-marketing/ | Eyrolles | Grégory Loth | Intelligence marketing - Digital, Innovation, Marketing - Mesurer l'expérience utilisateur - UX Metric | 5 | 2 | 00:00:04 | 1 |
| /livres/psychologie-sociale/ | Presses Universitaires de France | Grégory Loth | Psychologie sociale - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 5 | 2 | 00:00:04 | 1 |
| /livres/usability-engineering/ | Morgan Kaufmann | Guillaume Deconde | Usability engineering - Design - Mesurer l'expérience utilisateur - UX Metric | 5 | 2 | 00:00:06 | 0 |
| /livres/psychologie-experimentale/ | Guillaume Deconde | Psychologie expérimentale - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 4 | 1 | 00:00:03 | 0 | |
| /livres/multimedia-learning/ | Cambridge University Press | Guillaume Deconde | Multimedia Learning - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 3 | 2 | 00:10:03 | 0 |
| /livres/927 | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 2 | 1 | 00:00:35 | 1 |
| /livres/comprendre-et-realiser-les-tests-statistiques-a-laide-de-r/ | de Boeck | Guillaume Deconde | Comprendre et réaliser les tests statistiques à l'aide de R - | 2 | 1 | 00:00:03 | 0 |
| /livres/the-design-of-everyday-things/ | Basic Books | Guillaume Deconde | The Design of Everyday Things - | 2 | 2 | 00:00:12 | 2 |
| /livres/927/?fbclid=IwAR0agv32CSm4aKIGLu4M-zJJuB5ZBh0b-_fet3JMRE-jfXubZLMK1-YsoxQ | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/927/?fbclid=IwAR1fD8GgDBWl5rwVSCmdpNucIQh9DJXnjdHg7j2Vz5Ak9nCZGUHcSafEvZ8 | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/927/?fbclid=IwAR3Utf4UBGo9kIba3QWCiSGFd1XK7kI9m0gEonq9T6Nzq7WRoWnTfcRiTxA | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/927/?fbclid=IwAR3VcyQl9Iv6O6erLlYtZcDbkBlFSt0ZbxjuQ3uDJGpiniHNLg5ycF3mlNY | Dunod | Guillaume Deconde | Psychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/la-laideur-se-vend-mal/ | Gallimard | Grégory Loth | La laideur se vend mal - | 1 | 1 | 00:00:58 | 0 |
| /livres/lauto-qui-nexistait-pas/?fbclid=IwAR2QzF4r3XcES60mkLCc4-AkOxYda-n4NuqBqq17VIXOJNKLPsA_0GuvT_Q | Dunod | Grégory Loth | L'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/lauto-qui-nexistait-pas/?fbclid=IwAR3dEm39fguF3EcBLtvJNo2TDN2IwmEpmedG1gFa3vfIzXyjsQcxDy0QtTU | Dunod | Grégory Loth | L'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/lauto-qui-nexistait-pas/?fbclid=IwAR3rQaUDfSI1rMjItSwvhSdr6Oc9mb9cA7HDW7Y8Tbcy5hFziuzbX56v7kU | Dunod | Grégory Loth | L'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 |
| /livres/penser-la-communication/?fbclid=IwAR1m0v698q_G7c1i3NjGll5XRR5jpnHAFL8KCCcPVVWIkJQgG6UQp4d3kxY | Grégory Loth | PENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 | |
| /livres/penser-la-communication/?fbclid=IwAR3W4A1lpDSgXvtM0OALiVGQ05RpwT1XkzlcUE2jIQ2st8jliwDjS3aLFpc | Grégory Loth | PENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric | 1 | 1 | 00:00:00 | 1 | |
| /livres/psychologie-experimentale/ | Guillaume Deconde | Psychologie expérimentale - | 1 | 1 | 00:02:03 | 1 | |
| /livres/psychologie-sociale/ | Presses Universitaires de France | Grégory Loth | Psychologie sociale - | 1 | 1 | 00:00:00 | 1 |
| /livres/statistiques-en-sciences-humaines-avec-r/ | de Boeck | Guillaume Deconde | Statistiques en sciences humaines avec R - | 1 | 1 | 00:00:00 | 1 |
We will then have to use the pivot tables ofExcel or the Google Sheet pivot tables to finalize our study and get the charts below.
Reminder of our questions and answers
Which of the two authors of the site offer the most read books?
what is thePublisher Who gets the most visibility through book sheets?
We have presented this very powerful tool here through a simple example of data preparation and consolidation. It is also possible toUse for Increase customer knowledge By reconciling the route data da user registered in a Web Analytics tools with CRM data (as long as both datasets havea common key). In this context, it is necessary toquery an API for the purpose ofget a data stream, in JSON for example, and dUse GREL components to browse the streams ofA way similar to that used to browse HTML codes.
whateverAs such, the possibilities of data processing are vast and the capacities of thetool too. Open Refine has been constantly evolving since 2010. It has a few extensions to extend its features and an API to automate manyoperations.

