GA4 Geography Dimensions to BigQuery Mapping

Mapping GA4 Geography Dimensions to their corresponding BigQuery fields allows you to analyze the geographical distribution of your user base. 

You can identify the countries, regions, or cities where your website or app garners the most interest. 

Don’t overlook the power of geographic data in targeting advertising campaigns. 

By focusing your ads on specific countries, regions, or cities, you can ensure they reach the most relevant audience, potentially boosting your campaign’s effectiveness.

Combine geographic data with other user attributes to create highly targeted customer segments based on location and demographics.

Here’s a breakdown of GA4 Geography dimensions and their corresponding BigQuery fields:

GA4 Geography DimensionsWhat it isBigQuery Field Name (Formula)
CityIdentifies the city where user activities, such as website visits, are originating from.SELECT geo.city FROM your_table_name
City IDA unique identifier associated with the city from which user activities are conducted.Not available in BigQuery schema
ContinentSpecifies the continent from which a user is accessing your website or app.SELECT geo.continent FROM your_table_name
Continent IDA unique UN M49 code that corresponds to the continent where the user’s activity originates.Not available in BigQuery schema
CountryDescribes the country from which a user’s activity originates, helping in regional analysis.SELECT geo.country FROM your_table_name
Country IDThe ISO 3166 code representing the country of the user’s activity origin.SELECT geo.country_iso_code FROM your_table_name
RegionIndicates the broader geographic area, like a state or province, from which user activity comes.SELECT geo.region FROM your_table_name
Region IDA code identifying the specific region, such as a state or province code, linked to user activity.Not available in BigQuery schema
SubcontinentDetails the subcontinental area from which the user’s activity is originating, providing more granular geographic data.SELECT geo.sub_continent FROM your_table_name
Subcontinent IDThe UN M49 code that identifies the specific subcontinent where the user’s activity originates.Not available in BigQuery schema

Points to consider

City ID, Continent ID, Region ID, Subcontinent ID: These fields are not standard in the GA4 BigQuery export schema. If these identifiers are necessary, they would need to be derived or added through custom data processing or, if possible, during data collection.

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade