[UA→GA4] Send analytics.js event, timing, and exception hits to Google Analytics 4 [Legacy]

A Google Analytics 4 setting lets you collect analytics.js hits as events in your Google Analytics 4 property
You are viewing a legacy article about Universal Analytics. Learn more about Google Analytics 4 replacing Universal Analytics.

If you collect data for a Universal Analytics property and a Google Analytics 4 property (via dual tagging with analytics.js and gtag.js), you can use a single setting in your Google Analytics 4 property to automatically capture the following Universal Analytics hits:

  • Event hits (i.e. Category/Action/Label events that you collect using analytics.js)
  • Timing (load-time events)
  • Exceptions
This feature does not support Custom Dimensions and Metrics, Enhanced Ecommerce data, or User-ID. If you rely on these capabilities in your Universal Analytics property, we recommend updating your instrumentation in gtag.js or Google Tag Manager to log the necessary Google Analytics 4 fields.

While this setting lets you easily capture these three hit types as events, our recommended best practice is to update your code to capture that behavior using the Google Analytics 4 data model. Learn more

Set the option in Google Analytics 4

You should set the following option as soon as you create your Google Analytics 4 property.

  1. In Admin, under Data collection and modification, click Data Streams.
  2. Click Web and then click a web data stream.
  3. In the web stream details, click Configure tag settings (at the bottom).
  4. In the Settings section, click Show all to see all available options.
  5. Enable Collect Universal Analytics events.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
9482351735443907429
true
Search Help Center
true
true
true
true
true
69256
true
false