Set up Event Tracking

30/11/2019

To see data in your Events reports, you need to add code to your site or app to collect Event data.

In this article:

Tracking setup with Google Tag Manager

If you use Google Tag Manager to manage your tracking, read the Analytics Events tag setup guide.

Tracking setup (web)

If you have not already added basic page tracking, do this first.

To collect Event data from a website, you'll need to add JavaScript to your site that sends Analytics the details of each Event that is triggered. Refer to the Analytics Event Tracking documentation on Google Developers.

Tracking setup (app)

To collect Event data from a mobile app, use one of the Analytics SDKs.

To collect Event data from an Internet connected device (a point-of-sale device, for example, but not a website or mobile app), refer to Event Tracking in the Measurement Protocol developer guide.

Related resources

google-developers-svg

 

gtm-logo-sm-svg

 

* Nguồn: Google Analytics