Overview
6 tools for fetching Google Analytics data — traffic overview, sources, pages, geography, devices, and key events.Google Analytics data has a 1-day delay. Use
today - 1 day as the most recent end_date.ga_get_overview
Get Google Analytics overview — core metrics for the site. Parameters:
Response:
compare_with_previous=true, also returns comparison with percentage changes and previous_period dates.
Example Prompts:
“How is my traffic this month?”
“Compare this month’s analytics to last month”
ga_get_traffic_sources
Get traffic source breakdown from Google Analytics. Parameters:
Dimension values:
channel— High-level: Organic Search, Direct, Paid Search, Social, Referral, Emailsource— Specific: google, facebook, twitter, directmedium— Traffic type: organic, cpc, referral, emailcampaign— UTM campaign namesreferrer— Referring domains
“Where does my traffic come from?“
ga_get_pages
Get page performance data from Google Analytics. Parameters:
Type values:
top— Pages by total pageviewsentry— Landing pages (first page visitors see)exit— Last pages visitors see before leaving
“Show me my top landing pages”
ga_get_geo
Get geographic breakdown of visitors from Google Analytics. Parameters:
Response:
“Where are my visitors from?“
ga_get_devices
Get device, browser, or OS breakdown from Google Analytics. Parameters:
Dimension values:
category— Desktop, Mobile, Tabletbrowser— Chrome, Safari, Firefox, Edge, etc.os— Windows, macOS, iOS, Android, Linux, etc.
“What’s the mobile vs desktop split?“
ga_get_key_events
Get key events (conversions) from Google Analytics. Parameters:
Response:
“How many conversions did I get this month?”
