Event Tracking in Google Analytic

Firstly we have to know about what is Google Analytics and  how can we configure it into our website. If your concept is clear on that you can directly move to Event Tracking in Google Analytic.

So What is Event, and what are the things we can achieve by google analytic events. Hope you will be master on GA event after reading this Article ūüôā

Event Overview

Events are user interactions with content that can be tracked independently from a web page or a screen load. Downloads, mobile ad clicks, gadgets, Flash elements, AJAX embedded elements, and video plays are all examples of actions you might want to track as Events.

In a simple way Each and every activity which is done by visitor on your website is an event. You can track each activity of the visitor by using google analytic event. See below screenshot, there is excel sheet example for the events.


Example of Events :

  • YouTube or any video play, pause, forward, stop etc.
  • page/Article/Blog read percentage.
  • Move from one URL to another URL.
  • Ads click or any link click.
  • Form submission on your website.
  • Download link click.

There are may more activity which we can track by google analytic. Now we move on to implementation.

Implementation Of Events ( Event Tracking in Google Analytic )

Google analytic has provided a function for sending the event information, and Event hits can be sent using the send command and specifying a hitType of event. The sendcommand has the following signature for the event hit type:

 The function is :
ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue], [fieldsObject]);

Event fields

The following table summarizes the event fields:

Field Type Required Description
eventCategory string yes Typically the object that was interacted with (e.g. 'Video')
eventAction string yes The type of interaction (e.g. 'play')
eventLabel string no Useful for categorizing events (e.g. 'Fall Campaign')
eventValue number no A numeric value associated with the event (e.g. 42)

For a more in-depth description of each of these fields, see Anatomy of an Event in the Analytics Help Center.


The following command sends an event to Google Analytics indicating that the fall campaign promotional video was played:

 ga('send', 'event', 'Videos', 'play', 'Fall Campaign');

Note that as with all send commands, the fields passed in the convenience parameters may also be specified in the fieldsObject. The above command could be rewritten as:

ga('send', {
  hitType: 'event',
  eventCategory: 'Videos',
  eventAction: 'play',
  eventLabel: 'Fall Campaign'

Non-interaction events

In some cases you might want to send an event as a non-interaction event. To do this, specify the nonInteraction field as true in the fieldsObject of the send command:

ga('send', 'event', 'Videos', 'play', 'Fall Campaign', {
  nonInteraction: true

How to analyze your events on google analytic

In previous article we knew about How to analyze google analytic results  .

You can see real time event Under Real Time section. See below screenshot


If you face any problem related to google analytic you can contact me by commenting on the article.