How to extend the scope of your data analytics?

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.

Data extraction - digital analytics

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

Data extraction - digital analytics

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.Analyse de données - Open Refine - Data marketing - UX Metric

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”.

Analyse de données - Open Refine - Data marketing - UX Metric

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”

Analyse de données - Open Refine - Data marketing - UX Metric

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

Analyse de données - Open Refine - Data marketing - UX Metric

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.

Analyse de données - Open Refine - Data marketing - UX Metric

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

Analyse de données - Open Refine - Data marketing - UX Metric
Once the configuration is made, clicking on “OK” we apply this setting to theAll of our dataset

Analyse de données - Open Refine - Data marketing - UX Metric

As a result, here is the new column created:

Analyse de données - Open Refine - Data marketing - UX Metric

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.

Analyse data - Open Refine - Data marketing - UX Metric

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”
Analyse de données - Open Refine - Data marketing - UX Metric

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

Analyse de données - Open Refine - Data marketing - UX Metric

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.

Analyse de données - Open Refine - Data marketing - UX Metric

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

Analyse data - Open Refine - Data marketing - UX Metric

Once the order is applied, we get:

Analyse de données - Open Refine - Data marketing - UX Metric

At this stage, by exporting our work, we obtain a file presenting the data necessary to answer the questions asked initially.

PageEditeursAuteurTitre de pagePages vuesVues uniquesTemps moyen passé sur la pageEntrées
/livres/uxdesign/DunodGuillaume DecondeUX design & ergonomie des interfaces - Design - Mesurer l'expérience utilisateur - UX Metric301400:00:582
/livres/the-design-of-everyday-things/Basic BooksGuillaume DecondeThe Design of Everyday Things - Design - Mesurer l'expérience utilisateur - UX Metric161000:01:246
/livres/statistiques-appliquees/ellipsesGuillaume DecondeStatistiques appliquées -14700:00:046
/livres/show-me-the-numbers/Analytics PressGuillaume DecondeShow me the numbers - Data - Mesurer l'expérience utilisateur - UX Metric10700:00:256
/livres/comprendre-et-realiser-les-tests-statistiques-a-laide-de-r/de BoeckGuillaume DecondeComprendre et réaliser les tests statistiques à l'aide de R - Data - Mesurer l'expérience utilisateur - UX Metric9500:00:033
/livres/lean-analytics/O’Reilly MediaGrégory LothLean Analytics - Data, English, Marketing - Mesurer l'expérience utilisateur - UX Metric8300:01:020
/livres/python-pour-le-data-scientist/DunodGrégory LothPython pour le data scientist -8400:00:050
/livres/statistiques-appliquees/ellipsesGuillaume DecondeStatistiques appliquées - Data - Mesurer l'expérience utilisateur - UX Metric8400:00:033
/livres/statistiques-en-sciences-humaines-avec-r/de BoeckGuillaume DecondeStatistiques en sciences humaines avec R - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric8300:00:112
/livres/927/DunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric7300:00:061
/livres/eloge-du-changement/Pearson – Village MondialGrégory LothEloge du changement - Changement, management - Mesurer l'expérience utilisateur - UX Metric7400:00:282
/livres/lauto-qui-nexistait-pas/DunodGrégory LothL'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric7300:00:201
/livres/methodes-statistiques-en-sciences-humaines/de BoeckGuillaume DecondeMéthodes statistiques en sciences humaines - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric7400:00:043
/livres/python-pour-le-data-scientist/DunodGrégory LothPython pour le data scientist - Data - Mesurer l'expérience utilisateur - UX Metric7400:01:290
/livres/la-laideur-se-vend-mal/GallimardGrégory LothLa laideur se vend mal - Design - Mesurer l'expérience utilisateur - UX Metric6300:00:042
/livres/penser-la-communication/Grégory LothPENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric6500:07:022
/livres/psychologie-statistique-avec-r/edp sciencesGuillaume DecondePsychologie statistique avec R - Data, Sciences sociales - Mesurer l'expérience utilisateur - UX Metric6300:00:032
/livres/intelligence-marketing/EyrollesGrégory LothIntelligence marketing - Digital, Innovation, Marketing - Mesurer l'expérience utilisateur - UX Metric5200:00:041
/livres/psychologie-sociale/Presses Universitaires de FranceGrégory LothPsychologie sociale - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric5200:00:041
/livres/usability-engineering/Morgan KaufmannGuillaume DecondeUsability engineering - Design - Mesurer l'expérience utilisateur - UX Metric5200:00:060
/livres/psychologie-experimentale/Guillaume DecondePsychologie expérimentale - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric4100:00:030
/livres/multimedia-learning/Cambridge University PressGuillaume DecondeMultimedia Learning - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric3200:10:030
/livres/927DunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric2100:00:351
/livres/comprendre-et-realiser-les-tests-statistiques-a-laide-de-r/de BoeckGuillaume DecondeComprendre et réaliser les tests statistiques à l'aide de R -2100:00:030
/livres/the-design-of-everyday-things/Basic BooksGuillaume DecondeThe Design of Everyday Things -2200:00:122
/livres/927/?fbclid=IwAR0agv32CSm4aKIGLu4M-zJJuB5ZBh0b-_fet3JMRE-jfXubZLMK1-YsoxQDunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/927/?fbclid=IwAR1fD8GgDBWl5rwVSCmdpNucIQh9DJXnjdHg7j2Vz5Ak9nCZGUHcSafEvZ8DunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/927/?fbclid=IwAR3Utf4UBGo9kIba3QWCiSGFd1XK7kI9m0gEonq9T6Nzq7WRoWnTfcRiTxADunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/927/?fbclid=IwAR3VcyQl9Iv6O6erLlYtZcDbkBlFSt0ZbxjuQ3uDJGpiniHNLg5ycF3mlNYDunodGuillaume DecondePsychologie cognitive - Sciences sociales - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/la-laideur-se-vend-mal/GallimardGrégory LothLa laideur se vend mal -1100:00:580
/livres/lauto-qui-nexistait-pas/?fbclid=IwAR2QzF4r3XcES60mkLCc4-AkOxYda-n4NuqBqq17VIXOJNKLPsA_0GuvT_QDunodGrégory LothL'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/lauto-qui-nexistait-pas/?fbclid=IwAR3dEm39fguF3EcBLtvJNo2TDN2IwmEpmedG1gFa3vfIzXyjsQcxDy0QtTUDunodGrégory LothL'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/lauto-qui-nexistait-pas/?fbclid=IwAR3rQaUDfSI1rMjItSwvhSdr6Oc9mb9cA7HDW7Y8Tbcy5hFziuzbX56v7kUDunodGrégory LothL'auto qui n'existait pas - management, Projets - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/penser-la-communication/?fbclid=IwAR1m0v698q_G7c1i3NjGll5XRR5jpnHAFL8KCCcPVVWIkJQgG6UQp4d3kxYGrégory LothPENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/penser-la-communication/?fbclid=IwAR3W4A1lpDSgXvtM0OALiVGQ05RpwT1XkzlcUE2jIQ2st8jliwDjS3aLFpcGrégory LothPENSER LA COMMUNICATION - management - Mesurer l'expérience utilisateur - UX Metric1100:00:001
/livres/psychologie-experimentale/Guillaume DecondePsychologie expérimentale -1100:02:031
/livres/psychologie-sociale/Presses Universitaires de FranceGrégory LothPsychologie sociale -1100:00:001
/livres/statistiques-en-sciences-humaines-avec-r/de BoeckGuillaume DecondeStatistiques en sciences humaines avec R -1100:00:001

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?

Visibilité des auteurs sur les livres
AuteursPages vuesVues uniquesEntréesNombre de livres
Guillaume deconde134724313
Grégory Loth6734158

what is thePublisher Who gets the most visibility through book sheets?

Visibilité des éditeurs
EditeursLivres vuesVues uniquesEntrées
Sans référence1395
Analytics Press1076
Basic Books18128
Cambridge University Press320
de Boeck27149
Dunod683612
edp sciences632
ellipses22119
Eyrolles521
Gallimard742
Morgan Kaufmann520
O’Reilly Media830
Pearson – Village Mondial742
Presses Universitaires de France632

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.

About Grégory Loth 21 Articles
I have over 20 years of professional experience in digital, gained in agencies, IT services companies and client-side organizations. For more than 10 years, I have worked as a digital consultant specializing in performance. My background combines hands-on operational experience with business school training focused on two areas: management of commercial strategy and performance, and business strategy and transition management. On UX Metric, I share my knowledge with a simple objective: to make complex topics in marketing, digital performance, data and technology choices easier to understand.