Applied User Data Collection and Analysis Using JavaScript and PHP
eBook - ePub

Applied User Data Collection and Analysis Using JavaScript and PHP

Kyle Goslin, Markus Hofmann

Partager le livre
  1. 336 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Applied User Data Collection and Analysis Using JavaScript and PHP

Kyle Goslin, Markus Hofmann

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Applied User Data Collection and Analysis Using JavaScript and PHP is designed to provide the technical skills and competency to gather a wide range of user data from web applications in both active and passive methods. This is done by providing the reader with real-world examples of how a variety of different JavaScript- and PHP-based libraries can be used to gather data using custom feedback forms and embedded data gathering tools.

Once data has been gathered, this book explores the process of working with numerical data, text analysis, visualization approaches, statistics, and rolling out developed applications to both data analysts and users alike.Using the collected data, this book aims to provide a deeper understanding of user behavior and interests, allowing application developers to further enhance web-application development.

Key Features:

  • Complete real-world examples of gathering data from users and web environments


  • Offers readers the fundamentals of text analysis using JavaScript and PHP


  • Allows the user to understand and harness JavaScript data-visualization tools


  • Integration of new and existing data sources into a single, bespoke web-based analysis environment

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Applied User Data Collection and Analysis Using JavaScript and PHP est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Applied User Data Collection and Analysis Using JavaScript and PHP par Kyle Goslin, Markus Hofmann en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Computer Graphics. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2021
ISBN
9781000374438
Édition
1

CHAPTER 1

Introduction

1.1 Introduction

Understanding a user’s needs and requirements is one of the main driving forces for any business. Collected data provides insights into how users feel about a given feature or topic and how they work on a day to day basis. This data can be gathered directly from users by providing simple questions and allowing the user to select an option from a predefined list, or to enter their own text-based responses.
Although asking a user for their opinion is possible, other methods can be used to gather data. Data can be collected indirectly through a web application by monitoring the interactions and behaviors a user has with it. The collected data can be processed to generate meaningful statistics and visualizations, providing both overviews and a deep-dive analysis of user interests and needs.
Each different data type, such as numerical data and text data, comes with methods of identifying importance and relevance. Both quantitative and qualitative analysis approaches can be used to extract these insights. In this book, we explore the different methods available for data collection, extraction, and analysis. This book aims to describe the many different approaches that can be taken with the aim to capture as much data as possible for analysis.
To provide a complete solution, the process of developing and deploying the developed solutions on a cloud-based server is explored with additional features such as report generation and delivery. An emphasis in this book is placed on the diversity of technologies exposing you to many different alternatives for data collection and analysis, providing you with the tools needed to develop a well-rounded solution.

1.2 Who This Book Is Aimed At

This book is aimed at web application developers who have some knowledge with the basics of JavaScript and PHP. This book builds on this basic knowledge and provides complete working examples that can easily be deployed into existing web applications.
This book is not directed toward people who do not have these skills, however, the knowledge about gathering data and generating insights are still valuable to gain an understanding of what tools and approaches are available if you do have developers to implement these solutions.

1.3 Technologies Used

In this book, a clear line between the technologies used throughout the chapters can be seen. On the client-side, e.g., in the web browser of the user, HTML and JavaScript will be used. On the server-side, PHP version 7.41 running on an Apache version 2.4 web server2 is used to do the bulk of the processing of the data, e.g., storing the information in a database and calculating statistics.
JavaScript is used as it provides the ability to manipulate and present data to the user without the need to redirect the user to multiple different pages. Using the collected data, visualizations will be created using JavaScript and HTML/CSS libraries. As JavaScript is a browser-based programming language implemented by individual web browser vendors, each of the browsers can have slight variations as to how it is interpreted. To side-step the problem of cross-browser compatibility issues, we will utilize JavaScript libraries wherever possible. The main JavaScript library that is used in this book is jQuery version 3.5.3
jQuery offers all the features that plain JavaScript has to offer, but all of the cross-browser issues have been thoroughly tested. Any new user to JavaScript often searches for code and finds browser-specific JavaScript code, considering this the correct solution. But code that may work correctly in one browser may not work on a different browser. Much to the developer’s frustration, even a different version of the same browser may also cause issues when the sample code is run. For this reason, we will use libraries extensively to fast track the development process.
To aid the visualization process, JavaScript-based libraries such as D3.js, Charts.js, and Google Charts are explored as they offer high-quality interactive visualizations. A focus is placed on the diversity of the libraries used in this book to provide a learning experience with different code bases.
1 https:/​/​www.php.net
2 https:/​/​www.apache.org
3 https:/​/​www.jquery.com
As all data collected needs to be retrieved for analysis, different data sources will be explored. Examples of this include utilizing comma-separated value (CSV) files, simple text files, JSON files, and database tables. In this book, the core database we will be using is the MySQL 8 community edition4 database as it is free, widely used, and integrates with PHP.
Although many different web browsers exist, Google Chrome5 version 80 was used during the development of the examples in this book.

1.4 Variations of Data

In this section, we will begin the process of breaking down the two approaches that can be taken to gather data from users. The first approach is active data collection, whereby the user is directly polled to provide answers or judgments. The second approach is passive data collection, whereby all of the data is gathered in the background without the need for user intervention. Examples of this include gathering data by listening to the browser environment. As a user navigates a web application, data can be recorded and saved for future retrieval.
Data can come in both structured and unstructured formats. An example of structured data is a database table that contains the user level of interest graded by the user between one and ten. The only possible variations of this data are the numbers between the ranges provided to the user. An additional component of this structured data is the processing speed, as little to no processing is required since the data is already in the desired format. To gain insights from this data, simple metrics such as the total, sum, and average can be used.
Structured data is in contrast to unstructured data that may be held in any number of different storage locations such as a text file, CSV file, or a database table. This form of data inherently has no structure to it. This adds complexity to processing the data as it is not just a simple calculation or predefined column in a table. To extract meaning from this data, additional processing such as identifying relevance and importance must be performed.
4 https:/​/​dev.mysql.com/​downloads/​mysql
5 https:/​/​www.google.com/​chrome
After processing, additional steps can be performed to identify the relationships between individual pieces of data. Examples of this include the use of charts to visualize these relationships. As the quantity of data grows during the interactions with an application, methods of filtering the data to provide focus on the crucial trends can be performed.

1.4.1 Active Data

Active data is any data that has been directly provided by a user. This data can be collected by asking a user their opinion about a topic to a brief “yes” or “no” answer to a question. Often users do not have the time to give a wealth of information outlining how they feel about a particular page or subject. This often leads developers to consider the best time or approach to take to pose questions to the user.
The disadvantage of active data is that there is a cost associated with interacting with users. At the end of any process, many users simply do not want to leave any form of data and consider the process an annoyance. Example of active data include:
  • Number of times a user has shared or “liked” a particular page on a website through a social media interface.
  • Leaving a rating for a product on a website.
  • Answering the questions in a survey.
  • Setting custom options on a website.

1.4.2 Passive Data

Passive data is data collected in the background of an application without any user intervention. Although the user is navigating through content and selecting different articles of interest, at no time is the user ever formally requested to provide input about what they are currently viewing or their opinions. Passive data collection approaches include:
  • Length of time a user remains on a section of web application or viewing a page.
  • Statistics about popular pages that a user is viewing.
  • Amount of time a user has spent inside of a particular collection of pages that are all directly related to each other.
  • Demographic of a user.
  • Click times when users are interacting...

Table des matiĂšres