Set up Google Analytics 4 event tracking for recommended events, ecommerce events, SaaS events, and custom events using JavaScript, the dataLayer or the Measurement Protocol.
all properties
, or SaaS
events, or E-commerce
events,
or create your own custom
event. dataLayer
is used with Google Tag Manager, gtag.js
is used to
communicate event to Google Analytics directly, and the
Measurement Protocol
is used to communicate events server-to-server.Google Analytics: GA4 Event
tag inside Google
Tag Manager which will fire based on a Custom Event
trigger
where the event name is the same as the generate event name. fetch API
which will be used with gtag.js. The event can be
sent through and HTTP POST
request if you are sending it with any other method.