Google Analytics

Viewing automatically tracked events

In Google Analytics 3 (GA3)

All trackers are detected on-page and automatically tracked events are sent.

No manual configuration is needed

Events are visible under "Reports > Behavior > Events"

The "Event Category" and "Event Action" for each event type can be viewed here: https://docs.devhub.com/analytics/what-events-are-tracked-automatically

For Custom events, those are sent with an "Event Category" of "custom" and the "Event Action" is based on the name given to the custom event within the data-sb-custom-event attribute.

In Google Analytics 4 (GA4)

GA4 properties are supported, but automatic tracking is dependent on how the GA is being added to the page. There are two scenarios below:

  • Deployed via gtag placed within the current page

  • Deployed via GTM (Google Tag Manager)

Deployed via gtag placed within the current page

gtag code is automatically detected and events are sent with no manual configuration needed.

Events are then visible under "Reports > Engagement > Events" mixed in with the normal GA4 events

The "Event category" and "Event name" for each event type can be viewed here: https://docs.devhub.com/analytics/what-events-are-tracked-automatically

For Custom events, those are sent with an "Event category" of "custom" and the "Event name" is based on the name given to the custom event within the data-sb-custom-event attribute.

Deployed via GTM (Google Tag Manager)

GTM container codes are detected on page and events are pushed to these GTM containers automatically.

Event activity is visible under the Google Tag Manager "Tag assistant" preview mode

To see these custom events in the GA4 property requires manual mapping of these events from GTM to GA4 within the GTM configuration.

Last updated