Book Image

Hands-on Full Stack Development with Angular 5 and Firebase

By : Uttam Agarwal
Book Image

Hands-on Full Stack Development with Angular 5 and Firebase

By: Uttam Agarwal

Overview of this book

<p>This book is a complete package for you to build real-time web applications. You will build an end-to-end social networking web application from development to production with Angular as the frontend and Firebase as the backend.</p> <p>You will create an application called Friends with authentication, friends, and chat features. During the process, you’ll use Firebase authentication to register new users and Firebase database to store your extra user data. You’ll take a look at how to store and retrieve your user's images from Firebase storage. Then, you’ll create a real-time chat module with the Firebase database. Next, you’ll secure your database using Firebase security, make your application live with Firebase hosting, and develop your application with analytics.</p> <p>Moving on, you’ll take a look at how to create web pages using bootstrap with HTML, CSS, and TypeScript. You will use the angularfire2 library API in Angular services to interact with Firebase and write unit tests using the Jasmine framework that will help you to write a production-ready application. You’ll also discover various debugging techniques to troubleshoot any bug in your application. Finally, you’ll make your application Progressive Web Applications compliant.</p> <p>By the end of this book, you’ll be able to confidently build any complex application.</p>
Table of Contents (20 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Google data analytics


Google analytics is a free service offered by Google that provides statistics about the visitors and traffic to our website. It provides a more valuable input about the visitors and geographies. It also provides input about the behavior of the visitor when they use our website. The following are the steps for registering Google analytics to your application.

Creating a Google analytics account: We can create a Google analytics account with an existing Gmail account or a new Gmail account by performing the following steps:

  1. Open the browser and paste in the analytics URL (https://analytics.google.com/analytics)
  2. Click on the SIGNUP button
  3. Fill out your live application URL and form information
  4. Click on the Get Tracking ID button

Integrating tracking code into our application: After a successful signup, we can integrate the generated global site tag into our application. Take a look at the following sample global site code in index.html:

<head>
...
<script async src=...