👈 Home

Can you import your historical Google Universal Analytics data into GA4?


bugs bunny saying no

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:

table of UA vs GA4 data types

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.


© 2024 Brian David Hall