Events

Events provide insight on what is happening in your website or app, such as user actions, system events, or errors.

Event data can be sent from global site tag implementations with the event command.

gtag('event', 'login', {
  'method': 'Google'
});

Automatic events: There are events that are sent automatically sent to Google Analytics when you use the global site tag. You don't need to add any additional code for automatically-collected event data to appear in your reports.

Recommended events: The following events are recommended

Custom events: Custom events are events that you invent, i.e. events that are not already taken as automatic or suggested events. To send a custom event, use an event name that is not already defined as a recommended event or an automatically sent event. Before you create a new event, make sure that an equivalent suggested or automatic event does not already exist.

Learn more