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 wantGA4 fieldUse it with
Channel of each session (Organic Search, Paid Search, Email…)sessionDefaultChannelGroupSession metrics: sessions, engaged sessions, key events
Source / medium of each session (google / organic)sessionSourceMediumSame; or sessionSource and sessionMedium separately
Campaign of each sessionsessionCampaignNameSame
Channel that first brought each userfirstUserDefaultChannelGroupNew users, acquisition questions
Sessions / engaged sessionssessions, engagedSessions, engagementRate
ConversionskeyEvents, sessionKeyEventRateOnly 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

  1. In GA4, open Reports → Acquisition → Traffic acquisition and set the dates.
  2. For source / medium, change the table’s dimension from “Session default channel group” to “Session source / medium”.
  3. 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 groupSessions (Last 28 days)Sessions (Previous 28 days)Sessions changeKey events (Last 28 days)Key events (Previous 28 days)Key events change
Organic Search1,2851,021+25.9%3931+25.8%
Email856686+24.8%2621+23.8%
Paid Search845738+14.5%2522+13.6%
Direct825625+32.0%2519+31.6%
Unassigned641486+31.9%1915+26.7%
Referral572467+22.5%1714+21.4%
Organic Social432337+28.2%1310+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 campaignKey eventsSessionsTotal revenue
newsletter_nov341,1311,939.37
(direct)289441,617.52
(organic)206521,118.38
brand_search16545934.08
black_friday_202615495847.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

Sascha Heyer builds AskGA4 and learnga4sql.com, a SQL trainer for GA4’s BigQuery export. Questions or corrections: hello@askga4.com.