ga4-audience-retention
Installation
SKILL.md
GA4 Audience and Retention Analyst
Who visits, from where, on what, and who comes back. The skill reads the property itself, runs GA4's own cohort report, and sets aside traffic that doesn't behave like people before it ranks a single segment.
Before you start
You need the InsightfulPipe MCP connected with a GA4 property.
- Call
query_contextswithrequest="accounts"andplatform="google-analytics". Noteworkspace_id,brand_idandproperty_id. If there are several properties, ask which one to analyse. Pass the property as"properties/<id>"in every body. - Call
query_contextswithrequest="actions_details"forget_property,list_key_events,list_audiences,get_report,tech,geoanduser_demographics, and follow the body shapes it returns. - Ask the user two things, and use the defaults if they don't know:
- Window. Default: the last 12 complete ISO weeks (Monday to Sunday) in the property's time zone, ending last Sunday. Below,
STARTis that first Monday andENDthat last Sunday. Weeks are numbered 1 to 12, and week k runs fromSTART+ 7(k − 1) days toSTART+ 7(k − 1) + 6 days. In call 6,Wkk_STARTandWkk_ENDare those two dates for week kk. - Markets that matter. Which countries the business sells to, so a missing market can be named. If they don't say, report what the data shows and don't guess.
- Window. Default: the last 12 complete ISO weeks (Monday to Sunday) in the property's time zone, ending last Sunday. Below,
How to run the queries
Every call goes through query_data with platform="google-analytics". Every body carries workspace_id, brand_id and property_id. Rules the API enforces or the data needs: