lucianfialho/gmp-cli/recipe-compare-periods
Claude Code and agent skill by lucianfialho/gmp-cli
- community
Checking that the SKILL.md file is still in the repository.
Compare traffic metrics between two time periods to spot trends and changes.
Install
npx vskill@latest install lucianfialho/gmp-cli/recipe-compare-periodsSKILL.md
Compare Periods
PREREQUISITE: Load the following skills to execute this recipe:gmp-ga
Compare traffic metrics between two time periods to identify trends, growth, or drops. ga report does this natively with --compare -- one API call, correct date math, current/previous rows already in the response. Prefer it over running two separate reports and diffing by hand.
Steps
- This week vs the equal-length prior week:
gmp ga report -p PROPERTY_ID -m sessions,activeUsers,screenPageViews -r 7d --compare previous_period -f table
- This month (last 30 days) vs the prior 30 days:
gmp ga report -p PROPERTY_ID -m sessions,activeUsers,conversions -r 30d --compare previous_period -f table
- Year over year, same dates:
gmp ga report -p PROPERTY_ID -m sessions -r 2025-01-01..2025-01-31 --compare previous_year -f table
- Break a comparison down by dimension (e.g. by channel) --
--comparecomposes with-d:
gmp ga report -p PROPERTY_ID -m sessions -d sessionDefaultChannelGroup -r 30d --compare previous_period -f table
The output includes an implicit dateRange column (current/previous) distinguishing the two periods -- no need to request it as a dimension.
When to fall back to two separate calls
--compare only supports previous_period (equal-length preceding window) and previous_year (same dates, one year back). For an arbitrary non-adjacent comparison (e.g. this quarter vs a specific quarter two years ago that isn't exactly "previous year"), run two reports with explicit -r start..end ranges and diff the results yourself -- gsc report and the ads reports also have no native compare support and always need this two-call approach.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/recipe-compare-periods/SKILL.md
Popularity
- Repository stars
- 32
- Repository forks
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lucianfialho/gmp-cli/recipe-compare-periods)