Analytics

From juniorguru/junior.guru · View interactive version

Analytics is an AI agent skill from the GitHub repository juniorguru/junior.guru. Look up junior.guru web analytics (traffic, pageviews, visitors, top pages, referrers, countries, UTM sources, devices, events) via public Simple Analytics, and Google search performance (queries, impressions, clicks, positions, CTR) from Search Console data saved in the repo. Use whenever a task ne

How to use this skill

Skill file

Web Analytics

Two complementary sources:

Search Console clicks roughly correspond to Simple Analytics visits with referrer google, but the numbers never match exactly (different counting, ad blockers, timezones).

Simple Analytics

junior.guru uses Simple Analytics. Stats are public, no login or API key needed:

Prefer the API over scraping the dashboard.

Querying the Stats API

Always send version=6 and info=false (skips verbose field descriptions). Pick what you need via fields:

curl -sSL "https://simpleanalytics.com/junior.guru.json?version=6&info=false&start=2026-09-01&end=2026-10-01&fields=pageviews,visitors,pages&limit=20"

Dates:

Filters: page, pages (comma-separated), country, referrer, utm_source, device_type, etc. Trailing * wildcards work, e.g. page=/jobs/*. Alternatively append the path to the URL: https://simpleanalytics.com/junior.guru/club.json?.... Contains-search (*foo*) needs an API key, which we don't use.

junior.guru specifics

Google Search Console

Synced by src/jg/coop/sync/search_console.py (uv run jg sync --no-deps search-console, ask before running). CI commits new files automatically.

src/jg/coop/data/search_console/
├── pages/YYYY-MM.jsonl     # one row per page
└── queries/YYYY-MM.jsonl   # one row per page × query

Row shapes:

{"page": "/handbook/", "clicks": 120, "impressions": 4500, "position": 8.21}
{"page": "/handbook/", "query": "jak se naučit programovat", "clicks": 12, "impressions": 345, "position": 7.46}

How the data behaves:

Loading, e.g. with DuckDB (uvx --with duckdb python -c "import duckdb; print(duckdb.sql(...))") or pandas:

SELECT regexp_extract(filename, '(\d{4}-\d{2})', 1) AS month, *
FROM read_json_auto('src/jg/coop/data/search_console/queries/*.jsonl', filename = true);

Useful questions to ask the data:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.