Imported from acedatacloud/skills (
skills/yandex-metrica/SKILL.md). Install upstream withnpx skills add acedatacloud/skills --skill yandex-metrica. Copyright stays with the author (Apache-2.0).
Yandex Metrica
The BYOC token is injected as $YANDEXMETRICA_ACCESS_TOKEN. Keep it in the
Authorization header; never print it. Discover a counter before reporting.
SCRIPT="$SKILL_DIR/scripts/yandex_metrica.py"
python3 "$SCRIPT" counters
python3 "$SCRIPT" report --counter-id 12345678 --dimension country --start 2026-09-01 --end 2026-09-30
python3 "$SCRIPT" report --counter-id 12345678 --dimension utm-source --start 2026-09-01 --end 2026-09-30
Dimensions are deliberately limited to country, source, and utm-source;
the script does not make configuration or audience changes. Interpret visits
as a traffic signal. Use first-party registration and payment data to decide
whether a country or channel brings customers.
Official API: https://yandex.com/dev/metrika .
