Step 1: Confirm the Magnitude
The agent starts by verifying the drop and finding the exact start date usinganalytics_time_series.
Agent Logic:
- Call
analytics_time_serieswithdays: 30. - Identify the “inflection point” where clicks started to diverge from the rolling average.
Step 2: Site-Wide or Specific?
Next, the agent determines if the drop is universal or localized to certain segments. Agent Logic:- Use
compare_periodsto check:- By Device: Is it a mobile-only drop? (Likely PageSpeed or mobile-usability issue).
- By Country: Is it geographic? (Likely a local Google algorithm update).
- By Search Appearance: Is it a loss of Rich Snippets?
Step 3: Page/Query Attribution
The agent finds the specific pages or keywords that “lost” the most clicks. Agent Logic:- Use
seo_lost_queriesto identify top losers. - Cross-reference with
inspect_urlfor those pages to check for manual actions or indexing issues.
Step 4: Outcome
The agent concludes the investigation with an actionable report:“The 20% drop was concentrated on your Product pages (mobile only) starting on Tuesday. URL inspection shows the pages are still indexed, but PageSpeed scores dropped from 90 to 45. It appears a recent code update slowed down these pages, leading to a ranking decline.”