GA4 traffic by channel and source / medium in Google Sheets
By Sascha Heyer. Updated 2026-12-02.
GA4’s traffic by channel is the Traffic acquisition report (Reports → Acquisition → Traffic acquisition): sessions by Session default channel group. In Google Sheets you get the same table from the GA4 Data API with the dimension sessionDefaultChannelGroup (or sessionSourceMedium for source / medium) and the metrics sessions, engagedSessions and keyEvents, for a date range that ends yesterday.
The fields
| You want | GA4 field | Use it with |
|---|---|---|
| Channel of each session (Organic Search, Paid Search, Email…) | sessionDefaultChannelGroup | Session metrics: sessions, engaged sessions, key events |
| Source / medium of each session (google / organic) | sessionSourceMedium | Same; or sessionSource and sessionMedium separately |
| Campaign of each session | sessionCampaignName | Same |
| Channel that first brought each user | firstUserDefaultChannelGroup | New users, acquisition questions |
| Sessions / engaged sessions | sessions, engagedSessions, engagementRate | |
| Conversions | keyEvents, sessionKeyEventRate | Only events marked as key events |
Do not mix session channels with user metrics (or first-user channels with sessions): GA4 returns numbers, but they answer a different question than the one you asked. The Traffic acquisition report in GA4 uses the session channel, which is what you want for “where did our traffic come from”.
The manual way
- In GA4, open Reports → Acquisition → Traffic acquisition and set the dates.
- For source / medium, change the table’s dimension from “Session default channel group” to “Session source / medium”.
- Click Share this report → Download File → Export to Google Sheets. Repeat for the comparison period and line the two up by channel with
XLOOKUP.
The Data API request
The same report as a runReport request (for Apps Script, see the scheduling guide). Two date ranges make GA4 return each channel once per range:
{
"dimensions": [{ "name": "sessionDefaultChannelGroup" }],
"metrics": [{ "name": "sessions" }, { "name": "keyEvents" }, { "name": "sessionKeyEventRate" }],
"dateRanges": [
{ "name": "last_28_days", "startDate": "28daysAgo", "endDate": "yesterday" },
{ "name": "previous_28_days", "startDate": "56daysAgo", "endDate": "29daysAgo" }
],
"orderBys": [{ "metric": { "metricName": "sessions" }, "desc": true }]
}
The same report from a question
Asked in AskGA4 as “Sessions and key events by channel, last 28 days vs the 28 before”, the spec is:
Rows Session default channel group
Columns Sessions, Key events, Session key event rate
Compare Last 28 days (28daysAgo → yesterday) vs Previous 28 days (56daysAgo → 29daysAgo)
Sorted by Sessions, highest first
Up to 1,000 rows
AskGA4 puts the two periods side by side with a change column, one row per channel (comparisons are Pro):
| Session default channel group | Sessions (Last 28 days) | Sessions (Previous 28 days) | Sessions change | Key events (Last 28 days) | Key events (Previous 28 days) | Key events change |
|---|---|---|---|---|---|---|
| Organic Search | 1,285 | 1,021 | +25.9% | 39 | 31 | +25.8% |
| 856 | 686 | +24.8% | 26 | 21 | +23.8% | |
| Paid Search | 845 | 738 | +14.5% | 25 | 22 | +13.6% |
| Direct | 825 | 625 | +32.0% | 25 | 19 | +31.6% |
| Unassigned | 641 | 486 | +31.9% | 19 | 15 | +26.7% |
| Referral | 572 | 467 | +22.5% | 17 | 14 | +21.4% |
| Organic Social | 432 | 337 | +28.2% | 13 | 10 | +30.0% |
The report spec is AskGA4’s real answer to “Sessions and key events by channel, last 28 days vs the 28 before”. The numbers are sample data from a demo property.
For source / medium, ask “sessions and key events by source / medium, last 28 days”; for one channel’s detail, add a filter: “sessions by source / medium for Paid Search”. For campaigns, “which campaigns brought the most key events last month” gives:
| Session campaign | Key events | Sessions | Total revenue |
|---|---|---|---|
| newsletter_nov | 34 | 1,131 | 1,939.37 |
| (direct) | 28 | 944 | 1,617.52 |
| (organic) | 20 | 652 | 1,118.38 |
| brand_search | 16 | 545 | 934.08 |
| black_friday_2026 | 15 | 495 | 847.80 |
The report spec is AskGA4’s real answer to “Which campaigns brought the most key events last month?”. The numbers are sample data from a demo property.
Useful formulas on top
- Share of sessions per channel:
=B2/SUM(B$2:B$12), formatted as a percent. - Key events per 100 sessions:
=E2/B2*100. - Flag channels that dropped more than 20%:
=IF(D2<-0.2,"check","")on the change column.
Because a saved report rewrites the same sheet on every refresh, formulas like these keep pointing at the right cells.
The AskGA4 add-on is waiting for its Google Workspace Marketplace listing. Until it is listed, the same question-to-report step runs in your browser at askga4.com/app: sign in with Google, pick the property, ask, then copy the table into Google Sheets or download it as CSV. Saving reports into a sheet and scheduled refresh are part of the add-on. Free: 5 saved reports and 30 questions a month, refreshed by hand. Pro adds daily or weekly scheduled refresh, comparisons of up to 4 date ranges with a change column, and up to 200 saved reports (prices).
Questions
What is the difference between session and first user channel in GA4?
Session default channel group says where each session came from; first user default channel group says where the user came from the first time. Use the session channel with sessions and key events, the first user channel with new users.
Why is there an Unassigned channel?
GA4 puts sessions into Unassigned when their source and medium match no rule of the default channel group, often because of UTM parameters with unusual mediums. Fix the tagging, or report by source / medium to see what is inside.
How do I get source / medium instead of channel?
Use the dimension sessionSourceMedium, or sessionSource and sessionMedium separately. In AskGA4, ask for “by source / medium”.
Why do my channel numbers differ from the GA4 interface?
Check the date range (GA4’s last 28 days ends yesterday), that both use the session channel, and whether the GA4 report has a comparison or filter applied.
Can I compare two periods in one table?
Yes. Send two date ranges in one runReport request and line them up by channel. AskGA4 does that for you with a change column (Pro, up to 4 ranges).
Related guides
- GA4 landing page report in Google Sheets: A worked example: top landing pages by sessions, engagement and key events, the landingPage fields, (not set) and (other) explained.
- GA4 key events (conversions) report in Google Sheets: Key events (formerly conversions) by event, channel and campaign in a sheet, the rate metrics, and why a key event count can be zero.
- How to refresh GA4 reports in Google Sheets on a schedule: Three ways to make a GA4 table in Sheets refresh itself, with a complete Apps Script and how AskGA4’s daily and weekly refresh works.
- GA4 reports in Google Sheets, explained: dimensions, metrics, date ranges, comparisons, thresholds and quotas.
Sascha Heyer builds AskGA4 and learnga4sql.com, a SQL trainer for GA4’s BigQuery export. Questions or corrections: hello@askga4.com.