Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.
Ocular reads GA4 data through the GA4 → BigQuery export. You’ll create a service account with read access, grant that service account access to the GA4 property, link GA4 to a BigQuery project, then paste the credentials into Ocular.
Skip this step if you already have GA4 exporting to BigQuery.
To proceed with the BigQuery linking you need: a GA4 property, a Google Cloud account, BigQuery Owner, and at least GA Editor permissions.
Open BigQuery Linking
In your GA4 property, click Admin and then BigQuery Linking.
GA4 Home — open Admin
Create a new link
Click Link to create a new connection.
Product links → BigQuery links
Choose your BigQuery project
Click Choose a BigQuery project. Select your existing BigQuery (Google Cloud) project and click Confirm.
If your project is not listed, make sure you’ve added it in Google Cloud and refresh this page.
BigQuery links — click Link and select your project
Select your data location
Select your preferred data location. Make sure you choose the location where you run your queries.
If you choose the wrong region and need to change it after you’ve created the link, you’ll have to move the dataset in Google Cloud and then create a new link, or delete the link and dataset and start over.
Select the export frequency
Select the desired frequency of the data export:
Daily — for once a day updates.
Optional Streaming — adds a table where data from today is stored until the day is complete, then a new daily table is added.
Event data and Export type — choose Daily and optionally Streaming
Optional — add another data stream
If you have another data stream (app or web), you can add it to the same BigQuery dataset via Edit.
The Streaming option is not available for BigQuery sandbox environments. You can enable streaming export later if you upgrade to a billing-enabled account.
Optional — filter events
You may see an additional step where you can filter events that will be sent to BigQuery. This is useful for events you don’t need or to avoid exceeding the daily limit of 1 million events.
Submit
Review the settings and if everything is correct, click Submit. The BigQuery link is created. It will take some time (up to 24 hours) for your data to appear in BigQuery.
When you link GA and BigQuery, a service account is created: firebase-measurement@system.gserviceaccount.com. Verify that this account has been added as a member of the project and given the role of BigQuery User. If you previously gave the service account the Editor role, you’ll need to unlink and relink GA to your BigQuery project to change the role.
When the data starts flowing in, GA4 will start writing tables like events_* in a dataset named analytics_PROPERTY_ID within your selected project. You should be able to query these tables and see results.
Return to Data Management → Connectors → Add connector → Google Analytics 4.
Enter your values
Connector Name
Any name you choose.
Start Date
The earliest date for data sync (e.g., 2023-01-01).
Lookback Days
The number of past days from which data will be fetched during synchronization. This ensures recent historical data is included and kept up to date. The default setting is 30 days.
Events Start Date *
Select the date from which you want to start loading events data.
UTM Attribution Level
Choose campaign-level if UTMs are defined at the campaign level — attribution is applied at the campaign level. Choose ad-level if UTMs are defined at the ad level — attribution is applied at the individual ad level.
Schema name
The analytics_* dataset name from Step 4.
Service-account JSON key
Upload or paste the JSON file contents from Step 1.
Project ID
Your Google Cloud project ID. Automatically extracted from your service account JSON file.
GA4 Property ID
Located under company name — see Step 4 for the exact location.
Location of the BigQuery
The region from Step 4.
GA4 connector form in Ocular
Create the connector
On success, click Create — your first daily sync kicks off automatically.
GA4 → BigQuery takes up to 24 hours for the first export. If nothing appears after 24 hours, verify:
The link is still active in GA4 Admin → BigQuery Linking.
firebase-measurement@system.gserviceaccount.com is a project member with the BigQuery User role.
You haven’t hit the 1-million-events daily cap on a sandbox project.
Connection succeeds but Ocular sees no rows
Confirm the Schema name matches the actual dataset (analytics_<property_id>, not just analytics_) and the Location matches the dataset’s region. A region mismatch causes BigQuery to silently return zero rows.
Permission denied on BigQuery
The service account must have all three roles: BigQuery Data Viewer, BigQuery Job User, BigQuery Read Session User. Re-check under IAM & Admin → IAM in Google Cloud and re-grant if any are missing.
Need to change the region after linking
BigQuery datasets can’t be moved across regions in place. Either move the dataset using Google Cloud’s transfer service, or unlink GA4 → BigQuery, delete the existing dataset, and re-link with the correct region.
The GA4 Historical connector lets you import historical Google Analytics 4 data through the Google Analytics Reporting API — without needing a BigQuery export pipeline. Unlike the standard GA4 connector above, this one pulls pre-aggregated report data directly from the GA4 API.This is particularly useful when you need to:
Analyze data from before your GA4–BigQuery integration was set up
Access aggregated metrics and dimensions that may be pre-processed by Google
Backfill historical data for specific time periods
Pull historical reporting data without setting up the full BigQuery export pipeline
What you need
GA4 Property ID, Google Cloud Project ID, Service Account JSON key, and a Project Location.
What it unlocks
Pre-aggregated GA4 reporting data for historical periods not covered by your BigQuery export.
Prerequisites: A GA4 property with historical data, a Google Cloud project with the Google Analytics Reporting API enabled, and a service account with Viewer role on the GA4 property.
In your GA4 property, click Admin → BigQuery Linking.
Open BigQuery LinkingOpen BigQuery Linking
In your GA4 property, click Admin → BigQuery LinkingIn your GA4 property, click Admin → BigQuery Linking.
GA4 Admin → BigQuery Linking
Create a new linkreate a new link
Click Link to start a new connectionLink to start a new connection.
Create a new linkCreate a new link
Click Link to start a new connectionClick Link to start a new connection.
Click Link to create a new connection
Choose your Google Cloud project
Click Choose a BigQuery project, select your existing project, and click Confirm.
If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.
Choose your Google Cloud project
Click Choose a BigQuery project, select your existing project, and click Confirm.
If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.
Select your BigQuery (Google Cloud) project and confirm
Pick a data location
Select the region where you’ll run your queries.
If you choose the wrong region and need to change it later, you’ll have to move the dataset in Google Cloud and create a new link, or delete the link + dataset and start over.
Choose export frequency
Daily — one update per day (recommended).
Streaming (optional) — a same-day table that fills until the day completes, then a new daily table is added.
Streaming is not available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.
Choose your Google Cloud project
Click Choose a BigQuery project, select your existing project, and click Confirm.
If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.
Choose your Google Cloud project
Click Choose a BigQuery project, select your existing project, and click Confirm.
If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.
Select your BigQuery (Google Cloud) project and confirm
Pick a data location
Select the region where you’ll run your queries.
If you choose the wrong region and need to change it later, you’ll have to move the dataset in Google Cloud and create a new link, or delete the link + dataset and start over.
Choose export frequency
Daily — one update per day (recommended).
Streaming (optional) — a same-day table that fills until the day completes, then a new daily table is added.
Streaming is not available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.
Choose export frequency
Daily — one update per day (recommended).
Streaming (optional) — a same-day table that fills until the day completes, then a new daily table is added.
Streaming is not available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.
Choose your data location and export frequency
Choose your data location and export frequency
Optional — add another stream or event filter
If you have an additional data stream (app or web), add it to the same dataset via Edit. You may also see a step to filter events sent to BigQuery — useful to skip events you don’t need or stay under the 1-million-events daily limit.
Submit
Review the settings and click Submit. The BigQuery link is created — first data takes up to 24 hours to appear in BigQuery.
Open your GA4 property
Go to your GA4 property in the Google Analytics interface.
Find the Property ID
The Property ID can be found in your GA4 property settings or in the URL of your GA4 property. It’s a numeric value (e.g., 123456789).
If you’re not sure where to find it, check the URL when viewing your GA4 property — it will contain the Property ID.
Step H2 · Create a service account with appropriate permissions
Open IAM & Admin → Service Accounts
In Google Cloud console, open your project and navigate to IAM & Admin → Service Accounts.
Create the service account
Click + Create Service Account, name it (e.g., ocular-ga4-reader), and click Create and Continue.
Grant roles
Add these roles:
BigQuery Data Viewer
Read dataset and table data.
BigQuery Job User
Run BigQuery jobs in the project.
BigQuery Read Session User
Faster reads on large tables.
Google Analytics Admin
Access the GA4 Reporting API.
Create a JSON key
Click Done, open the service account, then Keys → Add key → Create new key → JSON. Save the file securely.
Add service account to GA4
Copy the service account email address. In GA4, go to Admin → Property Access Management, click + → Add users, paste the email, assign the Viewer role, and click Save.
Click Test Connection to verify your credentials and API access.
Create the connector
Once successful, click Update Connector to create the connection and begin retrieving historical GA4 data.
Unlike the standard GA4 connector that pulls raw event data from BigQuery, the Historical connector uses the Google Analytics Reporting API to retrieve pre-aggregated data. This means it may have different metrics and dimensions available than what you’d find in the raw BigQuery export.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ocular","description":"Step-by-step guides for every product—platform setup, analytics, and integrations in one place.","colors":{"primary":"#E34400","light":"#FF6B33","dark":"#B83400"},"logo":{"light":"https://mintcdn.com/ocular/5e9OtNFmlhdxQdXZ/images/ocular_logo_primary.png?fit=max\u0026auto=format\u0026n=5e9OtNFmlhdxQdXZ\u0026q=85\u0026s=5d162ce47c03edf182cc50de242007d0","dark":"https://mintcdn.com/ocular/5e9OtNFmlhdxQdXZ/images/ocular_logo_secondary.svg?fit=max\u0026auto=format\u0026n=5e9OtNFmlhdxQdXZ\u0026q=85\u0026s=28208f4e1b7ad51a7b5d558b44241fcb"},"favicon":{"light":"https://mintcdn.com/ocular/d11hcEgDLXJHAiK9/images/favicon.png?fit=max\u0026auto=format\u0026n=d11hcEgDLXJHAiK9\u0026q=85\u0026s=2fba4ee1bcf53a5b1c1abeb95d465e27","dark":"https://mintcdn.com/ocular/d11hcEgDLXJHAiK9/images/favicon.png?fit=max\u0026auto=format\u0026n=d11hcEgDLXJHAiK9\u0026q=85\u0026s=2fba4ee1bcf53a5b1c1abeb95d465e27"},"appearance":{"default":"light","strict":false},"background":{"decoration":"gradient"},"navbar":{"links":[],"primary":{"type":"button","label":"Get started","href":"https://ocular.dev/get-started"}},"footer":{"socials":{"x":"https://x.com/yourcompany","linkedin":"https://linkedin.com/company/yourcompany"}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"section","latex":false},"contextual":{"options":["copy","view","assistant","mcp","add-mcp"],"display":"header"},"navigation":{"directory":"card","pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ocular","hasAudioNarration":false,"actualSubdomain":"ocular","customDomains":["docs.ocular.dev"],"gitSource":{"type":"github","owner":"shubham-fornax","repo":"docs","deployBranch":"main","isPrivate":true,"contentDirectory":"","mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6accc6e5965aa326a0240b8b","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Overview","count":40},{"language":"default","tag":"Connectors","count":21},{"language":"default","tag":"Data Models","count":20},{"language":"default","tag":"Data models","count":20},{"language":"default","tag":"Brand Data","count":12},{"language":"default","tag":"Product","count":10},{"language":"default","tag":"Integrations","count":9},{"language":"default","tag":"Google Ads","count":8},{"language":"default","tag":"Start with the question","count":8},{"language":"default","tag":"Meta Ads","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--default-border-color: var(--gray-200)}.dark{--default-border-color: var(--gray-800)}#sidebar .nav-dropdown-trigger{border:none!important;background:transparent!important;box-shadow:none!important;padding-left:0.375rem}#sidebar .nav-dropdown-trigger:hover{background-color:rgb(0 0 0 / 0.04)!important}.dark #sidebar .nav-dropdown-trigger:hover{background-color:rgb(255 255 255 / 0.06)!important}#sidebar .nav-dropdown-trigger .nav-dropdown-item-icon{border:none!important;background:transparent!important;height:auto!important;width:auto!important;padding:0!important}.nav-dropdown-content{}.nav-dropdown-content .nav-dropdown-item{}.nav-dropdown-content .nav-dropdown-item-icon{border:none!important;background:transparent!important;height:auto!important;width:auto!important;padding:0!important}.nav-dropdown-content .nav-dropdown-item-description{display:none!important}#sidebar .nav-anchor span{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;font-size:12px;font-weight:500;letter-spacing:-0.02em;text-transform:uppercase}body:has([data-product-guide-index]) #sidebar a.nav-anchor[href=\"/\"]{color:rgb(var(--primary))!important;font-weight:600!important}body:has([data-product-guide-index]) #sidebar a.nav-anchor[href=\"/\"] span{color:inherit!important}body:has([data-product-guide-index]) #sidebar a.nav-anchor[href=\"/\"] svg{background-color:rgb(var(--primary))!important}.dark body:has([data-product-guide-index]) #sidebar a.nav-anchor[href=\"/\"]{color:rgb(var(--primary-light)/var(--tw-text-opacity,1))!important}.dark body:has([data-product-guide-index]) #sidebar a.nav-anchor[href=\"/\"] svg{background-color:rgb(var(--primary-light)/var(--tw-text-opacity,1))!important}:is(#content-area[data-current-path=\"/\"],[data-current-path=\"/\"] #content-area):has([data-product-guide-index]){background:transparent!important;padding:0!important}:is(#content-area[data-current-path=\"/\"],[data-current-path=\"/\"] #content-area):has([data-product-guide-index])>div:first-child{background:transparent!important;padding-right:0!important;padding-bottom:0!important;padding-left:0!important}[data-product-guide-index] a:not(.product-guide-feature-card){background-color:#fafafa!important}.dark [data-product-guide-index] a:not(.product-guide-feature-card){background-color:#09090b!important}.product-guide-feature-card{grid-column:1 / -1;display:flex!important;flex-direction:column!important;justify-content:space-between!important;min-height:260px;background:url('/images/sample-feature-light.png') center / cover no-repeat!important;border:none!important;box-shadow:none!important;color:white!important;.dark \u0026 {\n background-image: url('/images/sample-feature-dark.png') !important;\n }}.product-guide-feature-card>div{display:flex!important;flex:1;flex-direction:column!important;justify-content:space-between!important}.product-guide-feature-card :is(h2,h3,p,span,svg){color:white!important}.product-guide-feature-card :is(svg,[class*=\"icon\"]){background-color:white!important;width:2em!important;height:2em!important;margin-top:2px}.product-guide-feature-card-title{font-size:1.2em;font-weight:500}.product-guide-feature-card :is(h2,h3,p,span,svg).product-guide-feature-card-description{font-size:1.05em;font-weight:400;color:rgb(var(--gray-50) / 62.5%)!important;.dark \u0026 {\n color: rgb(var(--gray-50) / 50%) !important;\n }}img.nav-logo{max-width:220px;height:auto}"}],"page":{"pagePath":"connectors/google-analytics-4","slug":"/connectors/google-analytics-4","pageMetadata":{"title":"Google Analytics 4","sidebarTitle":"Google Analytics 4","description":"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.","icon":{"style":"brands","name":"google","library":"fontawesome"},"iconType":"brands","href":"/connectors/google-analytics-4"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,Frame,Heading,Icon,Note,OptimizedImage,Step,Steps,Tip,Warning}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Ocular reads GA4 data through the `,_jsx(_components.strong,{children:`GA4 → BigQuery export`}),`. You’ll create a service account with read access, grant that service account access to the GA4 property, link GA4 to a BigQuery project, then paste the credentials into Ocular.`]}),`\n`,_jsx(Heading,{level:`3`,id:`required-fields-in-ocular`,children:`Required fields in Ocular`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Project ID`}),` — your Google Cloud project that hosts the GA4 → BigQuery export`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Service-Account Key (JSON)`}),` — the contents of a JSON key file for a service account that can read BigQuery and view the GA4 property`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Schema name`}),` — the schema name in which your BigQuery export happens`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Start Date \u0026 Event Start Date`}),` — the date after which you want your data to be fetched and used by Ocular`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`GA4 Property ID`}),` — located under company name`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Location of the BigQuery`}),` — the location of the schema in the BigQuery you specified`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Follow the five sections below, then paste the values into `,_jsx(_components.strong,{children:`Data Management → Connectors → Add connector → Google Analytics 4`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What it unlocks:`}),` storefront-attributed ROAS, the User Activity Cohort (event-based retention), and the full session-to-checkout funnel.`]})}),`\n`,_jsxs(Frame,{caption:`GA4 connector — Data Management → Connectors → Add connector → Google Analytics 4`,children:[_jsx(OptimizedImage,{alt:`GA4 connector placeholder`,lightAlt:`GA4 connector placeholder`,darkAlt:`GA4 connector placeholder`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=36299f5f8fa4085f35b1ed5dec45ca8c`,className:`dark:mint-hidden`,\"data-og-width\":`2402`,width:`2402`,\"data-og-height\":`1446`,height:`1446`,\"data-path\":`images/gaga-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=fc7445fc597f712b5e3e79cf086df2df 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9667998aaebacb006fefd099c759535b 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5abc414ea301345fa7f755c2c225ee68 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=404d9a660c36c7034f1f7dcb92040032 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9cd37830358e6ded5f58934b3196a3ee 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=04fa04d622afc5774f849421af331cfb 2500w`}),_jsx(OptimizedImage,{alt:`GA4 connector placeholder`,lightAlt:`GA4 connector placeholder`,darkAlt:`GA4 connector placeholder`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=753e6ffb3775bcaefacfdc121208c632`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`2402`,width:`2402`,\"data-og-height\":`1446`,height:`1446`,\"data-path\":`images/gaga-2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=08aec7bd33727b624499afe152606410 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a04fa10b02be2506259d764af52cc4d8 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5baf865c4ddc8d0a2bce99424d693977 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4ff42ce88dd27cba9a9531592b5b49d0 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=027d683edd3f3b627205d698cc1165ed 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/gaga-2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=23f0278c14ed3828e097687c7b61b861 2500w`})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-1-·-create-a-service-account-with-bigquery-access`,children:[_jsx(Icon,{icon:`user-gear`}),` Step 1 · Create a service account with BigQuery access`]}),`\n`,_jsx(_components.p,{children:`Skip this step if you already have one.`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open IAM \u0026 Admin → Service Accounts`,icon:`window`,children:[_jsxs(_components.p,{children:[`In Google Cloud console, open the same project and navigate to `,_jsx(_components.strong,{children:`IAM \u0026 Admin → Service Accounts`}),`.`]}),_jsxs(Frame,{caption:`IAM \u0026 Admin → Service Accounts`,children:[_jsx(OptimizedImage,{alt:`IAM \u0026 Admin → Service Accounts`,lightAlt:`IAM \u0026 Admin → Service Accounts`,darkAlt:`IAM \u0026 Admin → Service Accounts`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=39c39092760937aa697da776f5672755`,className:`dark:mint-hidden`,\"data-og-width\":`634`,width:`634`,\"data-og-height\":`582`,height:`582`,\"data-path\":`images/GA45.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=edcf362cf4a1ce2a2bfe62fb7e0682e7 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1b38761a88c223e027995474e1d1d756 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=86fa20d9c90d0845a3aed4b2913e4865 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=578e59e30b6473ebb0d30e2a27784d5b 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=61ce97d258d5b6580aae0c1deafc988b 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=e056ebb916678be7d282d36d7bc645d0 2500w`}),_jsx(OptimizedImage,{alt:`IAM \u0026 Admin → Service Accounts`,lightAlt:`IAM \u0026 Admin → Service Accounts`,darkAlt:`IAM \u0026 Admin → Service Accounts`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f28781524dd099482c830f0ba7b16073`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`634`,width:`634`,\"data-og-height\":`582`,height:`582`,\"data-path\":`images/GA45-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=47240b807eae66ea6add6a01d25fe5f8 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7fc08216a7c1703b1c9cb5a3fc87aa97 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ac1f16ea726b7ec77a933e19413d644e 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bd127c0ce79981b7c541d498ab36f891 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8ef6bfa59d988ee75681a99733c65434 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA45-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=055e91f89a4d60652477cb31c1ad4c29 2500w`})]})]}),_jsx(Step,{title:`Click + Create Service Account`,icon:`user-plus`}),_jsxs(Step,{title:`Name it and click Create and Continue`,icon:`tag`,children:[_jsxs(_components.p,{children:[`Name it (e.g., `,_jsx(_components.code,{children:`ocular-ga4-reader`}),`) and click `,_jsx(_components.strong,{children:`Create and Continue`}),`.`]}),_jsxs(Frame,{caption:`Service account details — name the account and click Create and Continue`,children:[_jsx(OptimizedImage,{alt:`Service account details`,lightAlt:`Service account details`,darkAlt:`Service account details`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a1b399b3b1c569c410b776adf5a2dc02`,className:`dark:mint-hidden`,\"data-og-width\":`751`,width:`751`,\"data-og-height\":`497`,height:`497`,\"data-path\":`images/GA46.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=af08e88ec61397bcda087581d5027d6a 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=673b541c62c7cef77c74c6e5052777b8 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=639c1a93653bfe7493e42b084683c222 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=189e3f20c0421e1058dee5d5e6cef67e 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7b3166abf8f15399a43f6295b8e50e9e 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8a55be53edcc82fb42d6013df9990a80 2500w`}),_jsx(OptimizedImage,{alt:`Service account details`,lightAlt:`Service account details`,darkAlt:`Service account details`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=316efa7542fcf07348c9decc40c5be94`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`751`,width:`751`,\"data-og-height\":`497`,height:`497`,\"data-path\":`images/GA46-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6fb3de6f9b0daf714f7c9e07e7ff93ba 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=abd9ebe284c412e5ff35dfb9cd6b1a40 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=e8f801b8dc9ba9161317420096650110 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=09584a58361d6606dccc934067b06d7e 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=000c8b861991e40caf40926c1addc537 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA46-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d1f9990b1f2412b5c2e9a57f0d81f7df 2500w`})]})]}),_jsxs(Step,{title:`Grant roles`,icon:`shield-check`,children:[_jsx(_components.p,{children:`Grant these roles:`}),_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`BigQuery Data Viewer`,icon:`eye`,children:_jsx(_components.p,{children:`Read dataset and table data.`})}),_jsx(Card,{title:`BigQuery Job User`,icon:`play`,children:_jsx(_components.p,{children:`Run BigQuery jobs in the project.`})}),_jsx(Card,{title:`BigQuery Read Session User`,icon:`bolt`,children:_jsx(_components.p,{children:`For faster large-table reads.`})})]}),_jsxs(Frame,{caption:`Grant this service account access to project — use Add another role for each`,children:[_jsx(OptimizedImage,{alt:`Grant the three BigQuery roles`,lightAlt:`Grant the three BigQuery roles`,darkAlt:`Grant the three BigQuery roles`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0b0c952dcf8e13cacdcf859468d92e9f`,className:`dark:mint-hidden`,\"data-og-width\":`761`,width:`761`,\"data-og-height\":`585`,height:`585`,\"data-path\":`images/GA47.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=54976120f7a1bbf693e30168b93e1639 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=74b828fa666576cbe3e3b55780d577ae 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5338cfa343fa5fd7ec8c0d89e895866f 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9cb133d814627ce63843cf4b819601a9 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=e2004913c9aa598c2aad424afba3a439 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=2ff21196bd79088c1e03a3a4f0818004 2500w`}),_jsx(OptimizedImage,{alt:`Grant the three BigQuery roles`,lightAlt:`Grant the three BigQuery roles`,darkAlt:`Grant the three BigQuery roles`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0985a855eaeb09015a16bf0a8fad9ac1`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`761`,width:`761`,\"data-og-height\":`585`,height:`585`,\"data-path\":`images/GA47-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9afe6f0d0d5517fc2dc110a9346854a5 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=52b842ec59a6a1e41e161df695d979d8 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=75cdc49ca12daf7377f57f156731d8e6 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=96cfeab5e5c08ecb5f5d48b965b47a0b 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b8e2f0ccc020978ca7dd03aa49063e4b 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA47-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1ab5b72ccfff74f62fec67aa3280d6ce 2500w`})]})]}),_jsxs(Step,{title:`Create a JSON key`,icon:`key`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Done`}),`, then go back into the service account and choose `,_jsx(_components.strong,{children:`Keys → Add key → Create new key → JSON`}),`.`]}),_jsxs(Frame,{caption:`Open the service account from the Service accounts list`,children:[_jsx(OptimizedImage,{alt:`Service accounts list`,lightAlt:`Service accounts list`,darkAlt:`Service accounts list`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=df5e73d52433bb8f14dfd7a7110c80a0`,className:`dark:mint-hidden`,\"data-og-width\":`614`,width:`614`,\"data-og-height\":`405`,height:`405`,\"data-path\":`images/GA48.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=856fe743a966047feb4226012be13557 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3d75eacce5be874236a0ff13f8fbc8ef 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=37710cff9236cb24bbc6fbd11547b32e 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=90cb0d91a0bde8ccf08f64bfc8b06a57 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=63d58f28d4f131c12af831cd0cc18a03 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=722d6a4684c9e4422d3d9ce8d9e8b4be 2500w`}),_jsx(OptimizedImage,{alt:`Service accounts list`,lightAlt:`Service accounts list`,darkAlt:`Service accounts list`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=06b00e8eb9da2894732d9905e8d18bab`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`614`,width:`614`,\"data-og-height\":`405`,height:`405`,\"data-path\":`images/GA48-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a6887f154701999faadca638eeaef92d 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=2971f4975d46d60478ea4fdf48dd5ec1 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=787c6a11b6f604f3a996e4b51aaef804 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c6d660fd5115aa054d39a1416937dddc 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bb7238caaf16e3f3c37faaff7f8424f2 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA48-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5b0605b9967c33fe051a42f5b5b6c6c2 2500w`})]}),_jsxs(Frame,{caption:`Keys tab → Add key → Create new key`,children:[_jsx(OptimizedImage,{alt:`Keys tab → Add key → Create new key`,lightAlt:`Keys tab → Add key → Create new key`,darkAlt:`Keys tab → Add key → Create new key`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=2c657c4f202050ad2d6a2cd767a19424`,className:`dark:mint-hidden`,\"data-og-width\":`639`,width:`639`,\"data-og-height\":`477`,height:`477`,\"data-path\":`images/GA49.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=29d869f7ad7d7866619528313c58fb75 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9200b92364db7e83cccefda85a476128 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d2495a1b41f63322d675114f8de44b3a 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=68d75a22a60a792b7a29e80350cba217 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c3e1a391d8d10e7d8f75fac015982dcb 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6838ed0582c61f5b285a186a1169bf12 2500w`}),_jsx(OptimizedImage,{alt:`Keys tab → Add key → Create new key`,lightAlt:`Keys tab → Add key → Create new key`,darkAlt:`Keys tab → Add key → Create new key`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7734d6568f074d3acdefccc2e0cbd3fe`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`639`,width:`639`,\"data-og-height\":`477`,height:`477`,\"data-path\":`images/GA49-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=97e2559f3d0244c65e802f6bf48e7c28 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8e03944ba2b90e09265bd10e08c62487 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8633662db76ab7e11af2bbb8754891d7 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=57c426106f30d6ccc6f3cd530868abc3 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=975a649bea1ce841dd3ca1a90d927603 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA49-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=cbfd767ad174428b779d98f1f8ce31f6 2500w`})]}),_jsxs(Frame,{caption:`Create private key — choose JSON and click Create`,children:[_jsx(OptimizedImage,{alt:`Create private key — JSON`,lightAlt:`Create private key — JSON`,darkAlt:`Create private key — JSON`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=92f2f16f7ab459269415d17521d580a5`,className:`dark:mint-hidden`,\"data-og-width\":`645`,width:`645`,\"data-og-height\":`411`,height:`411`,\"data-path\":`images/GA450.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9f3437d78265057ba8991f007d4edc5e 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ce6ad31bc37bb3ecc15bee2795ed5369 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=75e4578dc1ebb3f6fdb949b3fed47c1f 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=595b010d54182bfa358f4419cf33890d 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f29afa3543b14e3d5e8851f55f46567c 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=23022e4bd3e9422a42e95558efa9ce06 2500w`}),_jsx(OptimizedImage,{alt:`Create private key — JSON`,lightAlt:`Create private key — JSON`,darkAlt:`Create private key — JSON`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5264fea738a0b74a441a116bf661edf3`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`645`,width:`645`,\"data-og-height\":`411`,height:`411`,\"data-path\":`images/GA450-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=77b97021d4fce16528f456f755046f54 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=73824b8dbbe1fb521f3d9d63f5f08b9d 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=25e95b25a015d72023ebefbe9f2192f6 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5f82db8c2ef2ef52b4263b6abbafdf67 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=aca0b8b0aedb87372288da7422777717 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA450-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=2b881a91451ccb7292f2390e7ea61264 2500w`})]})]}),_jsx(Step,{title:`Save the key file`,icon:`floppy-disk`,children:_jsx(_components.p,{children:`Save the file — it contains your service-account key.`})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If you are not sure how to create a service account with BigQuery access, you can follow the `,_jsx(_components.a,{href:`https://cloud.google.com/iam/docs/service-accounts-create`,children:`Google Cloud Service Account documentation`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-2-·-give-the-service-account-access-to-the-ga4-property`,children:[_jsx(Icon,{icon:`users`}),` Step 2 · Give the service account access to the GA4 property`]}),`\n`,_jsx(_components.p,{children:`Skip this step if you already have it.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Copy the service account email`,icon:`copy`,children:_jsx(_components.p,{children:`Copy the service account’s email address.`})}),_jsx(Step,{title:`Open GA4 Property Access Management`,icon:`shield`,children:_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`GA4 Admin → Property Access Management`}),`, click `,_jsx(_components.strong,{children:`+ → Add users`}),`.`]})}),_jsx(Step,{title:`Assign the Viewer role`,icon:`user-check`,children:_jsxs(_components.p,{children:[`Paste the email and assign `,_jsx(_components.strong,{children:`Viewer`}),` (read-only).`]})}),_jsx(Step,{title:`Save`,icon:`circle-check`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),`.`]})})]}),`\n`,_jsx(_components.p,{children:`The service account can now query GA4 event tables via BigQuery without using OAuth.`}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-3-·-link-ga4-to-bigquery`,children:[_jsx(Icon,{icon:`link`}),` Step 3 · Link GA4 to BigQuery`]}),`\n`,_jsx(_components.p,{children:`Skip this step if you already have GA4 exporting to BigQuery.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`To proceed with the BigQuery linking you need: a GA4 property, a Google Cloud account, BigQuery Owner, and at least GA `,_jsx(_components.strong,{children:`Editor`}),` permissions.`]})}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open BigQuery Linking`,icon:`google`,iconType:`brands`,children:[_jsxs(_components.p,{children:[`In your GA4 property, click `,_jsx(_components.strong,{children:`Admin`}),` and then `,_jsx(_components.strong,{children:`BigQuery Linking`}),`.`]}),_jsxs(Frame,{caption:`GA4 Home — open Admin`,children:[_jsx(OptimizedImage,{alt:`GA4 Admin`,lightAlt:`GA4 Admin`,darkAlt:`GA4 Admin`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d4ee593afa262d214c61b77632937b20`,className:`dark:mint-hidden`,\"data-og-width\":`1939`,width:`1939`,\"data-og-height\":`905`,height:`905`,\"data-path\":`images/GA41.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c3ee7c0e14715a277e36061d4f45f876 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0f953872bf3f9f03dea77c9e5f129378 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=78d6aa6d96b7668d8f50b37ed089cba8 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=add852a36f8dcfc4ec41f290e2b732c2 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3d69fa421b6e878e5c6c2ed2853613f8 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=636ae0f7d20f873e3037c85a9a4963dc 2500w`}),_jsx(OptimizedImage,{alt:`GA4 Admin`,lightAlt:`GA4 Admin`,darkAlt:`GA4 Admin`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a247533eec9e6d7ed12a3aeed943839c`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1939`,width:`1939`,\"data-og-height\":`905`,height:`905`,\"data-path\":`images/GA41-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8c33665de085250a40805dd5f1409473 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f87201e21a876e55b3b45dca5e4fa523 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b5dff094250755d93568049736b799f5 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1545a7335a66518f23e3ac6afbb852a8 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=253f471b907e6a75e306ab80a88e17f1 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=984041da25a382466151975876a6eb72 2500w`})]})]}),_jsxs(Step,{title:`Create a new link`,icon:`plus`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Link`}),` to create a new connection.`]}),_jsxs(Frame,{caption:`Product links → BigQuery links`,children:[_jsx(OptimizedImage,{alt:`BigQuery links in GA4 Admin`,lightAlt:`BigQuery links in GA4 Admin`,darkAlt:`BigQuery links in GA4 Admin`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ed4292aeac3cbec91395b8df0c9c14b7`,className:`dark:mint-hidden`,\"data-og-width\":`1902`,width:`1902`,\"data-og-height\":`894`,height:`894`,\"data-path\":`images/GA42.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=48f6de4157aedaa638569fe3e90e2864 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3bacf685ae7387b0e2ba490cb70ff384 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4a05587f59fef54781a4d6bf531ff6ed 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=297af49fdc186d992edde87fc1fcb9c8 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=adc584655ea2c220515df86b46fee399 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=dde1383dfc768bb5b95fe846eb852d01 2500w`}),_jsx(OptimizedImage,{alt:`BigQuery links in GA4 Admin`,lightAlt:`BigQuery links in GA4 Admin`,darkAlt:`BigQuery links in GA4 Admin`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5eaff6413afe2e78f248913c3e2aeeeb`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1902`,width:`1902`,\"data-og-height\":`894`,height:`894`,\"data-path\":`images/GA42-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bafefbef9266dc8688d243b33127b81e 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8c121e8922bae2cbad79a88360eea58c 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b7e6febff9e6c90f5d563473742050d4 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ac6bb39b113354290b85482bce03af55 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1cdf7ee3edbba6c0a6ac5752033e8113 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9f1f03827339be6e82eb1ab71684d577 2500w`})]})]}),_jsxs(Step,{title:`Choose your BigQuery project`,icon:`server`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Choose a BigQuery project`}),`. Select your existing BigQuery (Google Cloud) project and click `,_jsx(_components.strong,{children:`Confirm`}),`.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`If your project is not listed, make sure you’ve added it in Google Cloud and refresh this page.`})}),_jsxs(Frame,{caption:`BigQuery links — click Link and select your project`,children:[_jsx(OptimizedImage,{alt:`Select your BigQuery project`,lightAlt:`Select your BigQuery project`,darkAlt:`Select your BigQuery project`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bccd89eebe0192fb3fc36e96465d4ac8`,className:`dark:mint-hidden`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=335466a4cbfaad8578e59cff7b4b2432 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8eb683a2b37fb2e58cf5f29f037a90e9 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d2707934fe60e206d5fd2226207c9b06 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5ed2c4a7d82e017b432114d3ed4632d0 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=14f1b9f8bc08535e684ea01918228089 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ef12905f197d1256a25cb6001cf2b085 2500w`}),_jsx(OptimizedImage,{alt:`Select your BigQuery project`,lightAlt:`Select your BigQuery project`,darkAlt:`Select your BigQuery project`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=95bf977cd20688091495560a8b481241`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bdea2fe5056e9b4039e0b3936e3547d6 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=abe0f585e481ce552b57fc1352706729 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b7de3861e26352d6b3a747acc243ecf2 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c606a96c4dbc68a1ba2e060ea1f1be91 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7459ac994ead00b0648689af536ef444 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ccc15ffd14e5f0123c4163f9bd2d2e30 2500w`})]})]}),_jsxs(Step,{title:`Select your data location`,icon:`globe`,children:[_jsx(_components.p,{children:`Select your preferred data location. Make sure you choose the location where you run your queries.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`If you choose the wrong region and need to change it after you’ve created the link, you’ll have to move the dataset in Google Cloud and then create a new link, or delete the link and dataset and start over.`})})]}),_jsxs(Step,{title:`Select the export frequency`,icon:`clock-rotate-left`,children:[_jsx(_components.p,{children:`Select the desired frequency of the data export:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Daily`}),` — for once a day updates.`]}),`\n`,_jsxs(_components.li,{children:[`Optional `,_jsx(_components.strong,{children:`Streaming`}),` — adds a table where data from today is stored until the day is complete, then a new daily table is added.`]}),`\n`]}),_jsxs(Frame,{caption:`Event data and Export type — choose Daily and optionally Streaming`,children:[_jsx(OptimizedImage,{alt:`Export type — Daily and Streaming`,lightAlt:`Export type — Daily and Streaming`,darkAlt:`Export type — Daily and Streaming`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0f18a08456f366be919afdc529319a82`,className:`dark:mint-hidden`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c487ad65783daee0628035e61e0bc2c0 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=78f4fe91f529cf4c1da1297474b49b9e 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3f9aeb756d5224897630a16f08ba7655 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b1e34b060072d3bbec00679662f54c59 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=69deca0251f8612e650069c7a1afc94a 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=883737c73fb8673a10e5a0fb263e9847 2500w`}),_jsx(OptimizedImage,{alt:`Export type — Daily and Streaming`,lightAlt:`Export type — Daily and Streaming`,darkAlt:`Export type — Daily and Streaming`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=48cebdd8c1babeb75fa2f85ec1e5f015`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4946e12924bb7dbaea5e606fa76b8e7f 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=37a305ccbef34eb92b9ba8953054180d 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=046ce179be7649411d08f15f4b61d3b3 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6184ad045874df61889938cf5b225b84 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d57da3d9b703c2f358d84464c4631c75 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c5a496fdee734df02199c7132c098bed 2500w`})]})]}),_jsxs(Step,{title:`Optional — add another data stream`,icon:`layer-group`,children:[_jsxs(_components.p,{children:[`If you have another data stream (app or web), you can add it to the same BigQuery dataset via `,_jsx(_components.strong,{children:`Edit`}),`.`]}),_jsx(Note,{children:_jsx(_components.p,{children:`The Streaming option is not available for BigQuery sandbox environments. You can enable streaming export later if you upgrade to a billing-enabled account.`})})]}),_jsx(Step,{title:`Optional — filter events`,icon:`filter`,children:_jsx(_components.p,{children:`You may see an additional step where you can filter events that will be sent to BigQuery. This is useful for events you don’t need or to avoid exceeding the daily limit of 1 million events.`})}),_jsx(Step,{title:`Submit`,icon:`paper-plane`,children:_jsxs(_components.p,{children:[`Review the settings and if everything is correct, click `,_jsx(_components.strong,{children:`Submit`}),`. The BigQuery link is created. It will take some time (up to `,_jsx(_components.strong,{children:`24 hours`}),`) for your data to appear in BigQuery.`]})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`When you link GA and BigQuery, a service account is created: `,_jsx(_components.code,{children:`firebase-measurement@system.gserviceaccount.com`}),`. Verify that this account has been added as a member of the project and given the role of `,_jsx(_components.strong,{children:`BigQuery User`}),`. If you previously gave the service account the `,_jsx(_components.strong,{children:`Editor`}),` role, you’ll need to unlink and relink GA to your BigQuery project to change the role.`]})}),`\n`,_jsxs(_components.p,{children:[`When the data starts flowing in, GA4 will start writing tables like `,_jsx(_components.code,{children:`events_*`}),` in a dataset named `,_jsx(_components.code,{children:`analytics_PROPERTY_ID`}),` within your selected project. You should be able to query these tables and see results.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-4-·-find-your-bigquery-schema-name-and-location`,children:[_jsx(Icon,{icon:`magnifying-glass`}),` Step 4 · Find your BigQuery schema name and location`]}),`\n`,_jsx(Heading,{level:`3`,id:`finding-the-schema-name`,children:`Finding the schema name`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open BigQuery`,icon:`server`,children:_jsxs(_components.p,{children:[`In Google Cloud Console, navigate to `,_jsx(_components.strong,{children:`BigQuery`}),`.`]})}),_jsx(Step,{title:`Expand your project`,icon:`folder-tree`,children:_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`Explorer`}),` panel, expand your Project ID.`]})}),_jsx(Step,{title:`Find the analytics_ dataset`,icon:`database`,children:_jsxs(_components.p,{children:[`Look for datasets starting with `,_jsx(_components.code,{children:`analytics_`}),` followed by your GA4 property ID. The schema name is the complete dataset name — e.g., `,_jsx(_components.code,{children:`analytics_123456789`}),`.`]})})]}),`\n`,_jsxs(Frame,{caption:`The analytics_* dataset in the BigQuery Explorer`,children:[_jsx(OptimizedImage,{alt:`analytics_* dataset in BigQuery Explorer`,lightAlt:`analytics_* dataset in BigQuery Explorer`,darkAlt:`analytics_* dataset in BigQuery Explorer`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=fdd2d47faa81f9ea3011c2264e976208`,className:`dark:mint-hidden`,\"data-og-width\":`1911`,width:`1911`,\"data-og-height\":`623`,height:`623`,\"data-path\":`images/GA4schemaname.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=557842dbb778bccedda138dd96f125b9 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=554e9e04beb46864b2cbf5e537617ae4 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=957301e94981ebc4e54cc7aab44152d2 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a8b922c480bf38cf68f2c296752b36bd 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f74a80e20b139854516d96843db1bd52 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=248a6f760b6b7348fb37434a31e92128 2500w`}),_jsx(OptimizedImage,{alt:`analytics_* dataset in BigQuery Explorer`,lightAlt:`analytics_* dataset in BigQuery Explorer`,darkAlt:`analytics_* dataset in BigQuery Explorer`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=aec1456a8d398f70edf8a41d7b20b97b`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1911`,width:`1911`,\"data-og-height\":`623`,height:`623`,\"data-path\":`images/GA4schemaname-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8b6dd39695ae666f410b87723a22df3b 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d05c3d9091673fd4ea5be7bd69bc66b4 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ed6b197d75b5c2abe4e8326fa27612ea 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c6b984bd5722e01a090d801843dd8bb7 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4add2f214f10a708703c50bd4c4c737b 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA4schemaname-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5177e3b8100b5f4d5cc152afccbcc8e5 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`finding-the-property-id`,children:`Finding the Property ID`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open your account`,icon:`building`,children:_jsx(_components.p,{children:`Click on your account name.`})}),_jsx(Step,{title:`Read the Property ID`,icon:`hashtag`,children:_jsxs(_components.p,{children:[`It’s located under `,_jsx(_components.strong,{children:`Properties \u0026 Apps`}),`.`]})})]}),`\n`,_jsxs(Frame,{caption:`Property ID listed under Properties \u0026 Apps`,children:[_jsx(OptimizedImage,{alt:`Property ID under Properties \u0026 Apps`,lightAlt:`Property ID under Properties \u0026 Apps`,darkAlt:`Property ID under Properties \u0026 Apps`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=51bfa4da0e5387720fc5af78b1fef44b`,className:`dark:mint-hidden`,\"data-og-width\":`1625`,width:`1625`,\"data-og-height\":`840`,height:`840`,\"data-path\":`images/GA451.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1a4713279e83c89711635cd69c43f842 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=07ff5ed613d0bc5494a9a422f1740fef 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=dd1029d3932977631139f3c190d8ab07 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c3310be90ed36d0222e36d9118fd0189 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1b03c99383910015594a1adba41399e0 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c396f1ba9448d7bcc1af0a169f744d12 2500w`}),_jsx(OptimizedImage,{alt:`Property ID under Properties \u0026 Apps`,lightAlt:`Property ID under Properties \u0026 Apps`,darkAlt:`Property ID under Properties \u0026 Apps`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a9e7e8138fc1d7ac3f57c069750eda7e`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1625`,width:`1625`,\"data-og-height\":`840`,height:`840`,\"data-path\":`images/GA451-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3b3f3066f53213f401af645ca4d06121 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=67e0c912588c9c89d66e2425b642dbc9 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=17d1751e214c1a9e63aeeae9784d6f46 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=99290c836b2ee3d6cd377e80562dfe7a 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9d0aeb8580ed671b7cb0b6f41fd66ec4 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA451-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7898c512bcb75c5e43839b4891276ece 2500w`})]}),`\n`,_jsx(Heading,{level:`3`,id:`finding-the-bigquery-location`,children:`Finding the BigQuery location`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Click the dataset`,icon:`mouse-pointer`,children:_jsxs(_components.p,{children:[`Click on your `,_jsx(_components.code,{children:`analytics_*`}),` dataset in the BigQuery Explorer.`]})}),_jsx(Step,{title:`Read Data location`,icon:`globe`,children:_jsxs(_components.p,{children:[`In the `,_jsx(_components.strong,{children:`Dataset info`}),` panel on the right, look for `,_jsx(_components.strong,{children:`Data location`}),`.`]})}),_jsx(Step,{title:`Note the region`,icon:`map-pin`,children:_jsxs(_components.p,{children:[`Note the region (e.g., `,_jsx(_components.code,{children:`US`}),`, `,_jsx(_components.code,{children:`EU`}),`, `,_jsx(_components.code,{children:`asia-southeast1`}),`, etc.).`]})})]}),`\n`,_jsxs(Frame,{caption:`Default location for dataset creation in the completed link details`,children:[_jsx(OptimizedImage,{alt:`Data location in the completed link details`,lightAlt:`Data location in the completed link details`,darkAlt:`Data location in the completed link details`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b766c260100e0e8f1c02deb192704bfd`,className:`dark:mint-hidden`,\"data-og-width\":`1913`,width:`1913`,\"data-og-height\":`890`,height:`890`,\"data-path\":`images/GA452.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3dab034ca032b3491a9bea588eabf7eb 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7b274906e44098aa31c759c1aa1bf5e5 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=38341091f6cf318ad7bad5b5742d5e44 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=fc8ca814951bfe3ac8a02e9bc88e42a0 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=2f1f596de86fd229900f1f36f11f6fdd 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=893c57a870fb75e2d12ab08d70e69cd8 2500w`}),_jsx(OptimizedImage,{alt:`Data location in the completed link details`,lightAlt:`Data location in the completed link details`,darkAlt:`Data location in the completed link details`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f3eda0d2e2663266e9eeb305fae9e084`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1913`,width:`1913`,\"data-og-height\":`890`,height:`890`,\"data-path\":`images/GA452-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=e52524154cc7cdde77a837545ac1d5a9 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6d8891ad5014e8d754de2acec745b1d3 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=53383f025bedeeebeea31a0421edf645 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ed04645c038c35b5105515ec9efdac52 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b44539a00b32da194f70f2b34eba57ff 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA452-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=abe25785ba3e9cbdb1f5a5bcb9d3e30b 2500w`})]}),`\n`,_jsx(_components.p,{children:`Alternatively, you can run this query in BigQuery to get both values:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` schema_name, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`location`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `your-project-id.INFORMATION_SCHEMA.SCHEMATA`\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` schema_name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`LIKE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'analytics_%'`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`step-5-·-plug-the-credentials-into-ocular`,children:[_jsx(Icon,{icon:`plug`}),` Step 5 · Plug the credentials into Ocular`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open the connector form`,icon:`window`,children:_jsxs(_components.p,{children:[`Return to `,_jsx(_components.strong,{children:`Data Management → Connectors → Add connector → Google Analytics 4`}),`.`]})}),_jsxs(Step,{title:`Enter your values`,icon:`pen-to-square`,children:[_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Connector Name`,icon:`tag`,children:_jsx(_components.p,{children:`Any name you choose.`})}),_jsx(Card,{title:`Start Date`,icon:`calendar`,children:_jsxs(_components.p,{children:[`The earliest date for data sync (e.g., `,_jsx(_components.code,{children:`2023-01-01`}),`).`]})}),_jsx(Card,{title:`Lookback Days`,icon:`clock-rotate-left`,children:_jsx(_components.p,{children:`The number of past days from which data will be fetched during synchronization. This ensures recent historical data is included and kept up to date. The default setting is 30 days.`})}),_jsx(Card,{title:`Events Start Date *`,icon:`calendar-day`,children:_jsx(_components.p,{children:`Select the date from which you want to start loading events data.`})}),_jsx(Card,{title:`UTM Attribution Level`,icon:`bullseye`,children:_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`campaign-level`}),` if UTMs are defined at the campaign level — attribution is applied at the campaign level. Choose `,_jsx(_components.strong,{children:`ad-level`}),` if UTMs are defined at the ad level — attribution is applied at the individual ad level.`]})}),_jsx(Card,{title:`Schema name`,icon:`database`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`analytics_*`}),` dataset name from Step 4.`]})}),_jsx(Card,{title:`Service-account JSON key`,icon:`key`,children:_jsx(_components.p,{children:`Upload or paste the JSON file contents from Step 1.`})}),_jsx(Card,{title:`Project ID`,icon:`server`,children:_jsx(_components.p,{children:`Your Google Cloud project ID. Automatically extracted from your service account JSON file.`})}),_jsx(Card,{title:`GA4 Property ID`,icon:`hashtag`,children:_jsx(_components.p,{children:`Located under company name — see Step 4 for the exact location.`})}),_jsx(Card,{title:`Location of the BigQuery`,icon:`globe`,children:_jsx(_components.p,{children:`The region from Step 4.`})})]}),_jsxs(Frame,{caption:`GA4 connector form in Ocular`,children:[_jsx(OptimizedImage,{alt:`GA4 connector form`,lightAlt:`GA4 connector form`,darkAlt:`GA4 connector form`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1fbd0c5ce17ec1462549896b3b1bc247`,className:`dark:mint-hidden`,\"data-og-width\":`1898`,width:`1898`,\"data-og-height\":`943`,height:`943`,\"data-path\":`images/image-20260406-100015.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a7bb9bef60be1aa2e16386d1c97045bc 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=194f1de598debef4eee016fb1f4399f3 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=364f532141250e9362748471a3124ec9 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d7dc52e47a41be38b27a61546390467c 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5290032b220793a2b9e27bf62f3ca5a8 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5589d73131421f2cbe6294563f871700 2500w`}),_jsx(OptimizedImage,{alt:`GA4 connector form`,lightAlt:`GA4 connector form`,darkAlt:`GA4 connector form`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=443fe4cadf89b5355ad0aa00b008cbfc`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1898`,width:`1898`,\"data-og-height\":`943`,height:`943`,\"data-path\":`images/image-20260406-100015-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ad71ae9df1072e076e4d96c980d638c7 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=82a4d86481702d76720c6f0db6e7ff6e 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4ddc53172346aac32359fb3d1710783a 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d220bf2a5e2f1c1638f32ecd5aa7f066 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a5fee8762c5534a0de447e6021515227 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/image-20260406-100015-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f7be614818927b1301c0fb9174e9fd95 2500w`})]})]}),_jsx(Step,{title:`Create the connector`,icon:`circle-check`,children:_jsxs(_components.p,{children:[`On success, click `,_jsx(_components.strong,{children:`Create`}),` — your first daily sync kicks off automatically.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`troubleshooting`,children:[_jsx(Icon,{icon:`life-ring`}),` Troubleshooting`]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`No data in BigQuery after linking`,icon:`clock-rotate-left`,id:`no-data-in-bigquery-after-linking`,children:[_jsxs(_components.p,{children:[`GA4 → BigQuery takes up to `,_jsx(_components.strong,{children:`24 hours`}),` for the first export. If nothing appears after 24 hours, verify:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The link is still active in `,_jsx(_components.strong,{children:`GA4 Admin → BigQuery Linking`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`firebase-measurement@system.gserviceaccount.com`}),` is a project member with the `,_jsx(_components.strong,{children:`BigQuery User`}),` role.`]}),`\n`,_jsx(_components.li,{children:`You haven’t hit the 1-million-events daily cap on a sandbox project.`}),`\n`]})]}),_jsx(Accordion,{title:`Connection succeeds but Ocular sees no rows`,icon:`triangle-exclamation`,id:`connection-succeeds-but-ocular-sees-no-rows`,children:_jsxs(_components.p,{children:[`Confirm the `,_jsx(_components.strong,{children:`Schema name`}),` matches the actual dataset (`,_jsx(_components.code,{children:`analytics_\u003cproperty_id>`}),`, not just `,_jsx(_components.code,{children:`analytics_`}),`) and the `,_jsx(_components.strong,{children:`Location`}),` matches the dataset’s region. A region mismatch causes BigQuery to silently return zero rows.`]})}),_jsx(Accordion,{title:`Permission denied on BigQuery`,icon:`lock`,id:`permission-denied-on-bigquery`,children:_jsxs(_components.p,{children:[`The service account must have all three roles: `,_jsx(_components.strong,{children:`BigQuery Data Viewer`}),`, `,_jsx(_components.strong,{children:`BigQuery Job User`}),`, `,_jsx(_components.strong,{children:`BigQuery Read Session User`}),`. Re-check under `,_jsx(_components.strong,{children:`IAM \u0026 Admin → IAM`}),` in Google Cloud and re-grant if any are missing.`]})}),_jsx(Accordion,{title:`Need to change the region after linking`,icon:`globe`,id:`need-to-change-the-region-after-linking`,children:_jsx(_components.p,{children:`BigQuery datasets can’t be moved across regions in place. Either move the dataset using Google Cloud’s transfer service, or unlink GA4 → BigQuery, delete the existing dataset, and re-link with the correct region.`})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`For ticket-writing format when filing a connector issue, see `,_jsx(_components.a,{href:`/overview/working-with-the-ocular-team`,children:`Working with the Ocular team → Connector-not-working tickets`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`2`,id:`ga4-historical-connector`,children:[_jsx(Icon,{icon:`clock-rotate-left`}),` GA4 Historical Connector`]}),`\n`,_jsxs(_components.p,{children:[`The GA4 Historical connector lets you import historical Google Analytics 4 data through the `,_jsx(_components.strong,{children:`Google Analytics Reporting API`}),` — without needing a BigQuery export pipeline. Unlike the standard GA4 connector above, this one pulls pre-aggregated report data directly from the GA4 API.`]}),`\n`,_jsx(_components.p,{children:`This is particularly useful when you need to:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Analyze data from `,_jsx(_components.strong,{children:`before`}),` your GA4–BigQuery integration was set up`]}),`\n`,_jsx(_components.li,{children:`Access aggregated metrics and dimensions that may be pre-processed by Google`}),`\n`,_jsx(_components.li,{children:`Backfill historical data for specific time periods`}),`\n`,_jsx(_components.li,{children:`Pull historical reporting data without setting up the full BigQuery export pipeline`}),`\n`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`What you need`,icon:`key`,children:_jsx(_components.p,{children:`GA4 Property ID, Google Cloud Project ID, Service Account JSON key, and a Project Location.`})}),_jsx(Card,{title:`What it unlocks`,icon:`clock-rotate-left`,children:_jsx(_components.p,{children:`Pre-aggregated GA4 reporting data for historical periods not covered by your BigQuery export.`})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prerequisites:`}),` A GA4 property with historical data, a Google Cloud project with the Google Analytics Reporting API enabled, and a service account with Viewer role on the GA4 property.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`step-h1-·-locate-your-ga4-property-id`,children:[_jsx(Icon,{icon:`signs-post`}),` Step H1 · Locate your GA4 Property ID`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open BigQuery Linking`,icon:`google`,iconType:`brands`,children:_jsxs(_components.p,{children:[`In your GA4 property, click `,_jsx(_components.strong,{children:`Admin`}),` → `,_jsx(_components.strong,{children:`BigQuery Linking`}),`.`]})}),_jsxs(Step,{title:`Open BigQuery LinkingOpen BigQuery Linking`,icon:`google`,iconType:`brands`,children:[_jsxs(_components.p,{children:[`In your GA4 property, click `,_jsx(_components.strong,{children:`Admin`}),` → `,_jsx(_components.strong,{children:`BigQuery Linking`}),`In your GA4 property, click `,_jsx(_components.strong,{children:`Admin`}),` → `,_jsx(_components.strong,{children:`BigQuery Linking`}),`.`]}),_jsxs(Frame,{caption:`GA4 Admin → BigQuery Linking`,children:[_jsx(OptimizedImage,{alt:`GA41`,lightAlt:`GA41`,darkAlt:`GA41`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d4ee593afa262d214c61b77632937b20`,className:`dark:mint-hidden`,\"data-og-width\":`1939`,width:`1939`,\"data-og-height\":`905`,height:`905`,\"data-path\":`images/GA41.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c3ee7c0e14715a277e36061d4f45f876 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0f953872bf3f9f03dea77c9e5f129378 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=78d6aa6d96b7668d8f50b37ed089cba8 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=add852a36f8dcfc4ec41f290e2b732c2 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3d69fa421b6e878e5c6c2ed2853613f8 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=636ae0f7d20f873e3037c85a9a4963dc 2500w`}),_jsx(OptimizedImage,{alt:`GA41`,lightAlt:`GA41`,darkAlt:`GA41`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=a247533eec9e6d7ed12a3aeed943839c`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1939`,width:`1939`,\"data-og-height\":`905`,height:`905`,\"data-path\":`images/GA41-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8c33665de085250a40805dd5f1409473 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=f87201e21a876e55b3b45dca5e4fa523 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b5dff094250755d93568049736b799f5 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1545a7335a66518f23e3ac6afbb852a8 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=253f471b907e6a75e306ab80a88e17f1 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA41-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=984041da25a382466151975876a6eb72 2500w`})]})]}),_jsx(Step,{title:`Create a new linkreate a new link`,icon:`plus`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Link`}),` to start a new connection`,_jsx(_components.strong,{children:`Link`}),` to start a new connection.`]})}),_jsxs(Step,{title:`Create a new linkCreate a new link`,icon:`plus`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Link`}),` to start a new connectionClick `,_jsx(_components.strong,{children:`Link`}),` to start a new connection.`]}),_jsxs(Frame,{caption:`Click Link to create a new connection`,children:[_jsx(OptimizedImage,{alt:`GA42`,lightAlt:`GA42`,darkAlt:`GA42`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ed4292aeac3cbec91395b8df0c9c14b7`,className:`dark:mint-hidden`,\"data-og-width\":`1902`,width:`1902`,\"data-og-height\":`894`,height:`894`,\"data-path\":`images/GA42.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=48f6de4157aedaa638569fe3e90e2864 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3bacf685ae7387b0e2ba490cb70ff384 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4a05587f59fef54781a4d6bf531ff6ed 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=297af49fdc186d992edde87fc1fcb9c8 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=adc584655ea2c220515df86b46fee399 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=dde1383dfc768bb5b95fe846eb852d01 2500w`}),_jsx(OptimizedImage,{alt:`GA42`,lightAlt:`GA42`,darkAlt:`GA42`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5eaff6413afe2e78f248913c3e2aeeeb`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1902`,width:`1902`,\"data-og-height\":`894`,height:`894`,\"data-path\":`images/GA42-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bafefbef9266dc8688d243b33127b81e 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8c121e8922bae2cbad79a88360eea58c 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b7e6febff9e6c90f5d563473742050d4 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ac6bb39b113354290b85482bce03af55 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=1cdf7ee3edbba6c0a6ac5752033e8113 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA42-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=9f1f03827339be6e82eb1ab71684d577 2500w`})]})]}),_jsxs(Step,{title:`Choose your Google Cloud project`,icon:`server`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Choose a BigQuery project`}),`, select your existing project, and click `,_jsx(_components.strong,{children:`Confirm`}),`.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.`})})]}),_jsxs(Step,{title:`Choose your Google Cloud project`,icon:`server`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Choose a BigQuery project`}),`, select your existing project, and click `,_jsx(_components.strong,{children:`Confirm`}),`.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.`})}),_jsxs(Frame,{caption:`Select your BigQuery (Google Cloud) project and confirm`,children:[_jsx(OptimizedImage,{alt:`GA43`,lightAlt:`GA43`,darkAlt:`GA43`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bccd89eebe0192fb3fc36e96465d4ac8`,className:`dark:mint-hidden`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=335466a4cbfaad8578e59cff7b4b2432 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8eb683a2b37fb2e58cf5f29f037a90e9 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d2707934fe60e206d5fd2226207c9b06 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5ed2c4a7d82e017b432114d3ed4632d0 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=14f1b9f8bc08535e684ea01918228089 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ef12905f197d1256a25cb6001cf2b085 2500w`}),_jsx(OptimizedImage,{alt:`GA43`,lightAlt:`GA43`,darkAlt:`GA43`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=95bf977cd20688091495560a8b481241`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bdea2fe5056e9b4039e0b3936e3547d6 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=abe0f585e481ce552b57fc1352706729 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b7de3861e26352d6b3a747acc243ecf2 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c606a96c4dbc68a1ba2e060ea1f1be91 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7459ac994ead00b0648689af536ef444 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ccc15ffd14e5f0123c4163f9bd2d2e30 2500w`})]})]}),_jsxs(Step,{title:`Pick a data location`,icon:`globe`,children:[_jsx(_components.p,{children:`Select the region where you’ll run your queries.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`If you choose the wrong region and need to change it later, you’ll have to move the dataset in Google Cloud and create a new link, or delete the link + dataset and start over.`})})]}),_jsxs(Step,{title:`Choose export frequency`,icon:`clock-rotate-left`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Daily`}),` — one update per day (recommended).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Streaming (optional)`}),` — a same-day table that fills until the day completes, then a new daily table is added.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Streaming is `,_jsx(_components.strong,{children:`not`}),` available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.`]})})]}),_jsxs(Step,{title:`Choose your Google Cloud project`,icon:`server`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Choose a BigQuery project`}),`, select your existing project, and click `,_jsx(_components.strong,{children:`Confirm`}),`.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.`})})]}),_jsxs(Step,{title:`Choose your Google Cloud project`,icon:`server`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Choose a BigQuery project`}),`, select your existing project, and click `,_jsx(_components.strong,{children:`Confirm`}),`.`]}),_jsx(Tip,{children:_jsx(_components.p,{children:`If your project isn’t listed, confirm you’ve created it in Google Cloud and refresh.`})}),_jsxs(Frame,{caption:`Select your BigQuery (Google Cloud) project and confirm`,children:[_jsx(OptimizedImage,{alt:`GA43`,lightAlt:`GA43`,darkAlt:`GA43`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bccd89eebe0192fb3fc36e96465d4ac8`,className:`dark:mint-hidden`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=335466a4cbfaad8578e59cff7b4b2432 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=8eb683a2b37fb2e58cf5f29f037a90e9 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d2707934fe60e206d5fd2226207c9b06 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=5ed2c4a7d82e017b432114d3ed4632d0 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=14f1b9f8bc08535e684ea01918228089 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ef12905f197d1256a25cb6001cf2b085 2500w`}),_jsx(OptimizedImage,{alt:`GA43`,lightAlt:`GA43`,darkAlt:`GA43`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=95bf977cd20688091495560a8b481241`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1905`,width:`1905`,\"data-og-height\":`900`,height:`900`,\"data-path\":`images/GA43-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=bdea2fe5056e9b4039e0b3936e3547d6 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=abe0f585e481ce552b57fc1352706729 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b7de3861e26352d6b3a747acc243ecf2 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c606a96c4dbc68a1ba2e060ea1f1be91 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=7459ac994ead00b0648689af536ef444 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA43-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=ccc15ffd14e5f0123c4163f9bd2d2e30 2500w`})]})]}),_jsxs(Step,{title:`Pick a data location`,icon:`globe`,children:[_jsx(_components.p,{children:`Select the region where you’ll run your queries.`}),_jsx(Warning,{children:_jsx(_components.p,{children:`If you choose the wrong region and need to change it later, you’ll have to move the dataset in Google Cloud and create a new link, or delete the link + dataset and start over.`})})]}),_jsxs(Step,{title:`Choose export frequency`,icon:`clock-rotate-left`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Daily`}),` — one update per day (recommended).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Streaming (optional)`}),` — a same-day table that fills until the day completes, then a new daily table is added.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Streaming is `,_jsx(_components.strong,{children:`not`}),` available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.`]})})]}),_jsxs(Step,{title:`Choose export frequency`,icon:`clock-rotate-left`,children:[_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Daily`}),` — one update per day (recommended).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Streaming (optional)`}),` — a same-day table that fills until the day completes, then a new daily table is added.`]}),`\n`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Streaming is `,_jsx(_components.strong,{children:`not`}),` available on BigQuery sandbox accounts. Enable it later if you upgrade to a billing-enabled project.`]})}),_jsxs(Frame,{caption:`Choose your data location and export frequency`,children:[_jsx(OptimizedImage,{alt:`GA44`,lightAlt:`GA44`,darkAlt:`GA44`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0f18a08456f366be919afdc529319a82`,className:`dark:mint-hidden`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c487ad65783daee0628035e61e0bc2c0 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=78f4fe91f529cf4c1da1297474b49b9e 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3f9aeb756d5224897630a16f08ba7655 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b1e34b060072d3bbec00679662f54c59 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=69deca0251f8612e650069c7a1afc94a 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=883737c73fb8673a10e5a0fb263e9847 2500w`}),_jsx(OptimizedImage,{alt:`GA44`,lightAlt:`GA44`,darkAlt:`GA44`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=48cebdd8c1babeb75fa2f85ec1e5f015`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4946e12924bb7dbaea5e606fa76b8e7f 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=37a305ccbef34eb92b9ba8953054180d 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=046ce179be7649411d08f15f4b61d3b3 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6184ad045874df61889938cf5b225b84 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d57da3d9b703c2f358d84464c4631c75 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c5a496fdee734df02199c7132c098bed 2500w`})]}),_jsxs(Frame,{caption:`Choose your data location and export frequency`,children:[_jsx(OptimizedImage,{alt:`GA44`,lightAlt:`GA44`,darkAlt:`GA44`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=0f18a08456f366be919afdc529319a82`,className:`dark:mint-hidden`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c487ad65783daee0628035e61e0bc2c0 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=78f4fe91f529cf4c1da1297474b49b9e 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=3f9aeb756d5224897630a16f08ba7655 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=b1e34b060072d3bbec00679662f54c59 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=69deca0251f8612e650069c7a1afc94a 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=883737c73fb8673a10e5a0fb263e9847 2500w`}),_jsx(OptimizedImage,{alt:`GA44`,lightAlt:`GA44`,darkAlt:`GA44`,src:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=48cebdd8c1babeb75fa2f85ec1e5f015`,className:`mint-hidden dark:mint-block`,\"data-og-width\":`1217`,width:`1217`,\"data-og-height\":`530`,height:`530`,\"data-path\":`images/GA44-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=4946e12924bb7dbaea5e606fa76b8e7f 280w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=37a305ccbef34eb92b9ba8953054180d 560w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=046ce179be7649411d08f15f4b61d3b3 840w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=6184ad045874df61889938cf5b225b84 1100w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=d57da3d9b703c2f358d84464c4631c75 1650w, https://mintcdn.com/ocular/SLKbQDUMCoOa2jsd/images/GA44-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=SLKbQDUMCoOa2jsd\u0026q=85\u0026s=c5a496fdee734df02199c7132c098bed 2500w`})]})]}),_jsx(Step,{title:`Optional — add another stream or event filter`,icon:`filter`,children:_jsxs(_components.p,{children:[`If you have an additional data stream (app or web), add it to the same dataset via `,_jsx(_components.strong,{children:`Edit`}),`. You may also see a step to filter events sent to BigQuery — useful to skip events you don’t need or stay under the 1-million-events daily limit.`]})}),_jsx(Step,{title:`Submit`,icon:`paper-plane`,children:_jsxs(_components.p,{children:[`Review the settings and click `,_jsx(_components.strong,{children:`Submit`}),`. The BigQuery link is created — first data takes up to `,_jsx(_components.strong,{children:`24 hours`}),` to appear in BigQuery.`]})}),_jsx(Step,{title:`Open your GA4 property`,icon:`arrow-up-right-from-square`,children:_jsx(_components.p,{children:`Go to your GA4 property in the Google Analytics interface.`})}),_jsx(Step,{title:`Find the Property ID`,icon:`copy`,children:_jsxs(_components.p,{children:[`The Property ID can be found in your GA4 property settings or in the URL of your GA4 property. It’s a numeric value (e.g., `,_jsx(_components.code,{children:`123456789`}),`).`]})})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`If you’re not sure where to find it, check the URL when viewing your GA4 property — it will contain the Property ID.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`step-h2-·-create-a-service-account-with-appropriate-permissions`,children:[_jsx(Icon,{icon:`user-gear`}),` Step H2 · Create a service account with appropriate permissions`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open IAM \u0026 Admin → Service Accounts`,icon:`window`,children:_jsxs(_components.p,{children:[`In Google Cloud console, open your project and navigate to `,_jsx(_components.strong,{children:`IAM \u0026 Admin → Service Accounts`}),`.`]})}),_jsx(Step,{title:`Create the service account`,icon:`user-plus`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`+ Create Service Account`}),`, name it (e.g., `,_jsx(_components.code,{children:`ocular-ga4-reader`}),`), and click `,_jsx(_components.strong,{children:`Create and Continue`}),`.`]})}),_jsxs(Step,{title:`Grant roles`,icon:`shield-check`,children:[_jsx(_components.p,{children:`Add these roles:`}),_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`BigQuery Data Viewer`,icon:`eye`,children:_jsx(_components.p,{children:`Read dataset and table data.`})}),_jsx(Card,{title:`BigQuery Job User`,icon:`play`,children:_jsx(_components.p,{children:`Run BigQuery jobs in the project.`})}),_jsx(Card,{title:`BigQuery Read Session User`,icon:`bolt`,children:_jsx(_components.p,{children:`Faster reads on large tables.`})}),_jsx(Card,{title:`Google Analytics Admin`,icon:`chart-line`,children:_jsx(_components.p,{children:`Access the GA4 Reporting API.`})})]})]}),_jsx(Step,{title:`Create a JSON key`,icon:`key`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Done`}),`, open the service account, then `,_jsx(_components.strong,{children:`Keys → Add key → Create new key → JSON`}),`. Save the file securely.`]})}),_jsx(Step,{title:`Add service account to GA4`,icon:`user-check`,children:_jsxs(_components.p,{children:[`Copy the service account email address. In GA4, go to `,_jsx(_components.strong,{children:`Admin → Property Access Management`}),`, click `,_jsx(_components.strong,{children:`+ → Add users`}),`, paste the email, assign the `,_jsx(_components.strong,{children:`Viewer`}),` role, and click `,_jsx(_components.strong,{children:`Save`}),`.`]})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`If you are not sure how to create a service account, follow the `,_jsx(_components.a,{href:`https://cloud.google.com/iam/docs/service-accounts-create`,children:`Google Cloud Service Account documentation`}),`.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`step-h3-·-set-up-the-connector-in-ocular`,children:[_jsx(Icon,{icon:`plug`}),` Step H3 · Set up the connector in Ocular`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open the connector form`,icon:`window`,children:_jsxs(_components.p,{children:[`In Ocular, navigate to `,_jsx(_components.strong,{children:`Data Management → Connectors → Add connector → GA4 Historical`}),`.`]})}),_jsx(Step,{title:`Fill the fields`,icon:`pen-to-square`,children:_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Connector Name`,icon:`tag`,children:_jsxs(_components.p,{children:[`A descriptive name for your connector (e.g., `,_jsx(_components.code,{children:`GA4 Historical Main`}),`).`]})}),_jsx(Card,{title:`Start Date (optional)`,icon:`calendar`,children:_jsx(_components.p,{children:`The date from which you want to start loading data. Leave empty to use the default configuration.`})}),_jsx(Card,{title:`GA4 Property ID`,icon:`hashtag`,children:_jsxs(_components.p,{children:[`Your Google Analytics 4 Property ID (e.g., `,_jsx(_components.code,{children:`123456789`}),`).`]})}),_jsx(Card,{title:`Project Location`,icon:`globe`,children:_jsx(_components.p,{children:`The geographic location where your Google Cloud project is located (e.g., Asia South 1 (Mumbai)).`})}),_jsx(Card,{title:`Service Account JSON`,icon:`key`,children:_jsx(_components.p,{children:`Upload your JSON key file or paste its contents. The Google Cloud Project ID is automatically extracted from this file.`})})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(Heading,{level:`3`,id:`step-h4-·-test-and-create-the-connection`,children:[_jsx(Icon,{icon:`flask-vial`}),` Step H4 · Test and create the connection`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Test the connection`,icon:`flask-vial`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Test Connection`}),` to verify your credentials and API access.`]})}),_jsx(Step,{title:`Create the connector`,icon:`circle-check`,children:_jsxs(_components.p,{children:[`Once successful, click `,_jsx(_components.strong,{children:`Update Connector`}),` to create the connection and begin retrieving historical GA4 data.`]})})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Unlike the standard GA4 connector that pulls raw event data from BigQuery, the Historical connector uses the Google Analytics Reporting API to retrieve pre-aggregated data. This means it may have different metrics and dimensions available than what you’d find in the raw BigQuery export.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Google Analytics 4","sidebarTitle":"Google Analytics 4","description":"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.","icon":{"style":"brands","name":"google","library":"fontawesome"},"iconType":"brands","href":"/connectors/google-analytics-4"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Required fields in Ocular","slug":"required-fields-in-ocular","depth":3,"children":[]},{"title":" Step 1 · Create a service account with BigQuery access","slug":"step-1-·-create-a-service-account-with-bigquery-access","depth":2,"children":[]},{"title":" Step 2 · Give the service account access to the GA4 property","slug":"step-2-·-give-the-service-account-access-to-the-ga4-property","depth":2,"children":[]},{"title":" Step 3 · Link GA4 to BigQuery","slug":"step-3-·-link-ga4-to-bigquery","depth":2,"children":[]},{"title":" Step 4 · Find your BigQuery schema name and location","slug":"step-4-·-find-your-bigquery-schema-name-and-location","depth":2,"children":[{"title":"Finding the schema name","slug":"finding-the-schema-name","depth":3,"children":[]},{"title":"Finding the Property ID","slug":"finding-the-property-id","depth":3,"children":[]},{"title":"Finding the BigQuery location","slug":"finding-the-bigquery-location","depth":3,"children":[]}]},{"title":" Step 5 · Plug the credentials into Ocular","slug":"step-5-·-plug-the-credentials-into-ocular","depth":2,"children":[]},{"title":" Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":" GA4 Historical Connector","slug":"ga4-historical-connector","depth":2,"children":[{"title":" Step H1 · Locate your GA4 Property ID","slug":"step-h1-·-locate-your-ga4-property-id","depth":3,"children":[]},{"title":" Step H2 · Create a service account with appropriate permissions","slug":"step-h2-·-create-a-service-account-with-appropriate-permissions","depth":3,"children":[]},{"title":" Step H3 · Set up the connector in Ocular","slug":"step-h3-·-set-up-the-connector-in-ocular","depth":3,"children":[]},{"title":" Step H4 · Test and create the connection","slug":"step-h4-·-test-and-create-the-connection","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-hidden {\n display: none\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"ocular","siteName":"Ocular","title":"Google Analytics 4 - Ocular","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-09T07:44:08.248Z","originalFileLocation":"connectors/google-analytics-4.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ocular\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Google Analytics 4 - Ocular\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ocular\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ocular.dev/connectors/google-analytics-4\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ocular.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Google+Analytics+4\u0026amp;description=Connect+Google+Analytics+4+to+Ocular+through+the+GA4+BigQuery+export+using+a+Google+Cloud+service+account+for+full+session+and+event-level+reporting.\u0026amp;theme=0e90187cfa55a43c122cb5db\u0026amp;signature=ba2fd67d01865a9df65ffc72eb07628903eb5eb70d4b906f13e4d7e0254fc49b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Google Analytics 4 - Ocular\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ocular.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Google+Analytics+4\u0026amp;description=Connect+Google+Analytics+4+to+Ocular+through+the+GA4+BigQuery+export+using+a+Google+Cloud+service+account+for+full+session+and+event-level+reporting.\u0026amp;theme=0e90187cfa55a43c122cb5db\u0026amp;signature=ba2fd67d01865a9df65ffc72eb07628903eb5eb70d4b906f13e4d7e0254fc49b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ocular/tqVQ9c7zY2A9-Cau/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ocular\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E34400\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ocular.dev/connectors/google-analytics-4\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/connectors/google-analytics-4.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ocular.dev/#organization\",\"name\":\"Ocular\",\"url\":\"https://docs.ocular.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ocular/5e9OtNFmlhdxQdXZ/images/ocular_logo_primary.png?fit=max\u0026auto=format\u0026n=5e9OtNFmlhdxQdXZ\u0026q=85\u0026s=5d162ce47c03edf182cc50de242007d0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ocular.dev#website\",\"name\":\"Ocular\",\"url\":\"https://docs.ocular.dev\",\"publisher\":{\"@id\":\"https://docs.ocular.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ocular.dev/connectors/google-analytics-4#webpage\",\"url\":\"https://docs.ocular.dev/connectors/google-analytics-4\",\"name\":\"Google Analytics 4\",\"description\":\"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\",\"dateModified\":\"2026-09-09T07:44:08.248Z\",\"isPartOf\":{\"@id\":\"https://docs.ocular.dev#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ocular.dev/connectors/google-analytics-4#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ocular.dev/connectors/google-analytics-4#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview\",\"item\":\"https://docs.ocular.dev/connectors/shopify\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrations\",\"item\":\"https://docs.ocular.dev/connectors/shopify\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Google Analytics 4\",\"item\":\"https://docs.ocular.dev/connectors/google-analytics-4\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ocular.dev/connectors/google-analytics-4#article\",\"headline\":\"Google Analytics 4\",\"name\":\"Google Analytics 4\",\"description\":\"Connect Google Analytics 4 to Ocular through the GA4 BigQuery export using a Google Cloud service account for full session and event-level reporting.\",\"url\":\"https://docs.ocular.dev/connectors/google-analytics-4\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ocular.dev/connectors/google-analytics-4#webpage\"},\"dateModified\":\"2026-09-09T07:44:08.248Z\",\"publisher\":{\"@id\":\"https://docs.ocular.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ocular.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ocular\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ocular\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/connectors/google-analytics-4.md","siteName":"Ocular","nav":{"global":null,"directory":"card","tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/overview"}]},{"tab":"Connectors","groups":[{"group":"Overview","icon":"circle-info","pages":[{"group":"Integrations","icon":"plug","pages":[{"title":"Shopify","sidebarTitle":"Shopify","icon":{"style":"brands","name":"shopify","library":"fontawesome"},"iconType":"brands","href":"/connectors/shopify"},{"title":"Facebook Ads","sidebarTitle":"Facebook Ads","icon":{"style":"brands","name":"meta","library":"fontawesome"},"iconType":"brands","href":"/connectors/facebook-ads"},{"title":"Google Ads","sidebarTitle":"Google Ads","description":"Connect Google Ads to Ocular via OAuth — sign in once with an Admin user and Ocular handles account selection, syncs, and token refresh for you.","icon":{"style":"brands","name":"google","library":"fontawesome"},"iconType":"brands","href":"/connectors/google-ads"},{"title":"Google Analytics 4","sidebarTitle":"Google Analytics 4","icon":{"style":"brands","name":"google","library":"fontawesome"},"iconType":"brands","href":"/connectors/google-analytics-4"},{"title":"GoKwik","sidebarTitle":"GoKwik","description":"Connect GoKwik checkout to Ocular using Base URL, App ID, and App Secret from your merchant dashboard to sync orders, payments, and COD data.","icon":{"name":"cart-circle-check","style":"regular","library":"fontawesome"},"href":"/connectors/gokwik"},{"title":"Unicommerce","sidebarTitle":"Unicommerce","icon":{"name":"bags-shopping","style":"regular","library":"fontawesome"},"href":"/connectors/unicommerce"},{"title":"EasyEcom","sidebarTitle":"EasyEcom","icon":"boxes-stacked","href":"/connectors/easyecom"},{"title":"Return Prime","sidebarTitle":"Return Prime","icon":"rotate-left","href":"/connectors/return-prime"},{"title":"Myntra Partners","sidebarTitle":"Myntra Partners","icon":"bag-shopping","href":"/connectors/myntra-partners"}]},{"group":"Brand Data","icon":"file-arrow-up","pages":[{"title":"Events Mapping","sidebarTitle":"Events Mapping","icon":"calendar-days","href":"/brand-data/events-mapping"},{"title":"Marketing Budget","sidebarTitle":"Marketing Budget","icon":"money-bill-trend-up","href":"/brand-data/marketing-budget"},{"title":"Branding \u0026 Offline Media Spends","sidebarTitle":"Branding \u0026 Offline Media","icon":"tv","href":"/brand-data/branding-and-offline-media-spends"},{"title":"Revenue Plan","sidebarTitle":"Revenue Plan","icon":"chart-line","href":"/brand-data/revenue-plan"},{"title":"Discount Code Mapping","sidebarTitle":"Discount Code Mapping","icon":"tag","href":"/brand-data/discount-code-mapping"},{"title":"Influencer Mapping","sidebarTitle":"Influencer Mapping","icon":"users","href":"/brand-data/influencer-mapping"},{"title":"Marketplace Fees","sidebarTitle":"Marketplace Fees","icon":"store","href":"/brand-data/marketplace-fees"},{"title":"SKU Costs","sidebarTitle":"SKU Costs","icon":"coins","href":"/brand-data/sku-costs"},{"title":"SKU Hierarchy","sidebarTitle":"SKU Hierarchy","icon":"sitemap","href":"/brand-data/sku-hierarchy"},{"title":"Agency \u0026 Miscellaneous Costs","sidebarTitle":"Agency \u0026 Misc Costs","icon":"briefcase","href":"/brand-data/agency-and-miscellaneous-costs"},{"title":"Channel Listing","sidebarTitle":"Channel Listing","icon":"list-check","href":"/brand-data/channel-listing"},{"title":"Shipping \u0026 Fulfilment Costs","sidebarTitle":"Shipping \u0026 Fulfilment","icon":"truck","href":"/brand-data/shipping-and-fulfilment-costs"}]}]}]},{"tab":"Data Models","pages":[{"title":"Data Models","href":"/data-models/overview"}]},{"tab":"Features","pages":[{"title":"Features","href":"/features/cohorts/user-activity"}]}]},"basePath":"","title":"Google Analytics 4 - Ocular","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["07c022d89b","a74be98ba7","a9bb46feb3"],"chunks":["Frame-u3J1-UOn.js","DynamicMarkdown-B-f2cqXQ.js","zoom-image-lightbox-DTFzvaXJ.js","lightbox-handle-r17bVUz3.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}