Enabling analytics

Analytics play an important role in understanding what users are visiting your site and how long they have been on a particular page. In this section, we will be using Google Analytics to track user interactions on the site. This is one of those really easy things that you can do even outside of Web Components.

In order to start using Analytics, we need to do the following:

  1. Go to https://analytics.google.com/, then click on the admin button and create a new property. You will be dropped on to New Property page.
  1. You can then start filling out the forms on the page:

  1. Once you have filled in the details, and clicked on the Get Tracking ID button, you will be dropped onto the next page:

  1. You can use the code from the text area and put it in your index.html file.
  2. That's it. Now, you can simply go to the following URL and see how users are visiting your site: https://analytics.google.com.
  1. You will be dropped onto a page where you can see how users have visited your page:

And, you can then use this data to understand what users do on your page, and how much time they stay on the site.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.34.178