Can you import your historical Google Universal Analytics data into GA4?
January 2023
No.
Google doesnât have a tool for this, and they donât have a tool for it because the two products structure data differently.
Check out this bad boy:
Because your Universal Analytics (UA) data is a wild hodgepodge of hit types, and the new GA4 data is events, events, events, it doesnât make sense to âimport pageviewsâ into GA4. There are no pageviews. There are only events, each of which automatically captures page_location
and page_title
.
Thatâs kind of a non-answer, thoughâwhy canât you just transform your UA pageviews into GA4 events and import them into GA4 as a batch?
The answer to that, as far as I can tell, is âGoogle doesnât want you to.â
You can use the GA4 API to send events, 25 at a time, to your new GA4 data stream.
So if you had 5,000 views of your homepage last Thursday, you could script up a solution to send 5,000 GA4 events named page_view
with the proper page_location
and page_title
parameters. But how do you indicate that it happened last Thursday?
I havenât found an answer. (If you know, please get in touch.)
Hereâs what you can do
You can export key UA reports to CSV/Excel/Google Sheets. And just ⌠look them up when you need historical data.
Orâand this is what Googleâs hoping youâll doâyou can export your UA data to BigQuery, and enable the GA4 <> BigQuery connector.
Then youâll have all your (mismatched) data in one place, where you can query to your heartâs content.
If reading this broke your heart, I might be able to help. Check out my GA4 migration & training page for more info + a link to book a call.