Geo fields & dimensions

Geo Fields & Dimensions

Published:

Written by:

The geo columns can provide details about the geographic location where an event originated, such as the country, region or city.

Please keep in mind that these values are derived from the user’s IP address, which may not always be accurate, especially if the user is utilizing a VPN or similar services.

Field NameData TypeDescriptionExample Values
geo.continentSTRINGThe continent from which the event was initiatedEurope
Americas
Asia
geo.sub_continentSTRINGThe sub-continent from which the event was initiatedNorthern Europe
South America
Australasia
geo.countrySTRINGThe country from which the event was initiatedUnited Kingdom
Brazil
United States
geo.regionSTRINGThe region from which the event was initiatedEngland
New York
Louisiana
geo.metroSTRINGThe metro area from which the event was initiatedLondon
Austin TX
North Scotland
geo.citySTRINGThe city from which the event was initiatedLondon
Berlin
Winchester

Sample geo fields query

Select the geo fields you need from the below query.

SELECT
  geo.continent,
  geo.sub_continent,
  geo.country,
  geo.region,
  geo.metro,
  geo.city
FROM `<project>.<dataset>.<table>`

Important Note: Make sure you replace the placeholders within the WHERE clause with the specific values for the table you are working with. For example, if you want to extract data for January 31st 2021 from the e-commerce sample dataset, use the following values:

  • <project> should be replaced with bigquery-public-data
  • <dataset> should be replaced with ga4_obfuscated_sample_ecommerce
  • <table> should be replaced with events_20210131

Ensure that you substitute these placeholders with your actual project, dataset, and table names when executing the queries.


For details and examples of other fields & dimensions see:

New to the GA4 BigQuery export? Check out our free introductory guide.

X