appmetrica-integrationlisted
Install: claude install-skill Nioris/project-forge
# AppMetrica Integration
## Cel
Wire Yandex AppMetrica analytics SDK в Android wrapper of your project. Universal — works для:
- TWA wrappers (HTML5 game в WebView)
- Capacitor wrappers (Ionic)
- Cordova wrappers
- Native Kotlin/Java apps
Skill **auto-detects** wrapper type by inspecting project structure, applies correct integration pattern.
## When this matters
AppMetrica gives you:
- **Retention** (D1/D7/D30) — required for ASO ranking signals
- **Funnel analysis** — где юзеры drop off
- **In-app event tracking** — level_complete, prestige_done, IAP_purchase
- **Crash reports** — automatic crash collection
- **Push notifications** — targeted campaigns to user segments
- **Revenue attribution** — IAP source tracking
- **Real-time mode** — events visible в dashboard within 1-2 minutes
**Without analytics:** no retention data, RuStore editors don't feature, no funnel insights. AppMetrica is **de-facto mandatory** for RuStore game success.
## Prerequisites
```
[ ] AppMetrica account создан → https://appmetrica.yandex.ru/
[ ] App registered в AppMetrica → got API key (32-char UUID)
[ ] Android wrapper project exists (TWA, Capacitor, или native)
[ ] AndroidManifest.xml writable
[ ] build.gradle (app-level) writable
```
If нет AppMetrica account:
1. Open https://appmetrica.yandex.ru/
2. Sign in с Yandex ID
3. Create App → fill basic info → get API key
4. Copy API key (UUID, 32 chars hex с dashes)
## Step 1 — Auto-detect wrapper type
Read project structure:
```bash
# C