valerybriz / GA4-GA3

A Big Query SQL request to simplify audit of GA4 migration from GA3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GA4-GA3 Big Query audit

A Big Query SQL request to simplify audit of GA4 migration from GA3

As most Google Analytics 3 (aka Universal Analytics) users are migrating to Google Analytics 4, once first implementation is done, it is important to understand what are the gaps between the two tools

This query is intended to help in finding and fixing those gaps

Here is a step by step guide on how to use it

  1. Make sure you have connected both GA3 and GA4 to Big Query You can find tutorials on those links: connect GA3 to BigQuery (only for Google 360 clients) and connect GA4 to BigQuery (for all clients)

  2. Copy Paste the file GA4_GA3_inBQ.sql in a Big Query SQL environment (or if you are familiar with git, clone it on desired place)

  3. Specify the proper dates for analysis in the query by replacing with your own dates if need be - that would be typically the last week

  4. Find and replace the name of the GA3 (your_project.your_GA3_ID.ga_sessions_20*) and GA4 (your_project.your_GA4_ID.events_20*) tables with the proper names of your table in the whole query

  5. Run the query

  6. You can directly analyse the results in BigQuery, or optionally, export to Gsheet/ Excel and use conditional formating/ filtering and ranking there in order to find biggest gaps

About

A Big Query SQL request to simplify audit of GA4 migration from GA3

License:MIT License