Sub topic 2
Importing GA4 key events into Google Ads
This chapter assumes you know the GA4 interface, understand events and event parameters, have Editor access to a GA4 property, and can write basic SQL (SELECT, WHERE, GROUP BY). It covers the Google Ads, Search Console, and BigQuery links in that order.
Linking GA4 to Google Ads
Open Admin > Product links > Google Ads links, then select Link. You need Editor access to the GA4 property and Admin access to the Google Ads account. Keep auto-tagging on in Google Ads. It adds a gclid parameter to ad URLs so GA4 can match sessions to ad clicks.
Importing key events into Google Ads
Key events are the GA4 events you mark as important, such as purchase. In Google Ads, create a conversion action of type Import, choose Google Analytics 4 properties, and select the key events to import. Imported conversions appear in Google Ads reports and can feed bidding.
Sharing audiences with Google Ads
Audiences built in GA4 can be shared to Google Ads through the link. They then appear as audience segments that campaigns can target.
Personalized advertising and consent
The link's personalized advertising setting controls whether GA4 data can be used for ad personalization. Users who decline consent are excluded from personalized audiences. If you use Consent Mode, it sends consent signals so Google can model conversions for users who decline.
Linking GA4 to Search Console
Open Admin > Product links > Search Console links, select Link, choose the Search Console property and its web data stream, then confirm. You need Owner or Full user access in Search Console and Editor access in GA4. Next, go to Reports > Library and publish the Search Console collection so its reports appear in the navigation.
Using the Search Console reports
The reports show Google organic queries, landing pages, and organic traffic. Data arrives with a delay of about two days. Search Console query data is aggregated differently from GA4 sessions, so the numbers will not match exactly.
Linking GA4 to BigQuery
Open Admin > Product links > BigQuery links, select Link, and choose a Google Cloud project. You need Editor access in GA4 and permission to create datasets, such as the BigQuery Data Owner or Admin role. Choose the dataset location carefully, because you cannot change it later. Then select daily export, streaming export, or both. Standard properties are limited to 1 million events per day for daily export.
Confirm that the tables arrive:
bq ls --project_id=my-project analytics_123456789The dataset name is analytics_ followed by your GA4 property ID. Daily tables are named events_YYYYMMDD.
Querying event_params with UNNEST
The event_params field is repeated, so you read it with a subquery over UNNEST:
SELECT
(SELECT value.string_value FROM UNNEST(event_params) WHERE key = 'page_location') AS page_location,
COUNT(*) AS page_views
FROM `my-project.analytics_123456789.events_*`
WHERE _TABLE_SUFFIX BETWEEN '20250101' AND '20250131'
AND event_name = 'page_view'
GROUP BY page_location
ORDER BY page_views DESC
LIMIT 20;Exercise
Why does the Google Ads key event import depend on auto-tagging?
Show answer
Auto-tagging adds the gclid parameter to ad clicks. Google Ads uses gclid to match a GA4 session to the ad click, so an imported conversion can be linked to the ad that produced it.