Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90089

revenuecat-ad-tracking

Add RevenueCat ad monetization tracking to an app so ad impressions, clicks, revenue and rewarded ads appear in RevenueCat Charts next to subscription…

БесплатноБез исполняемых скриптов
RevenueCatот RevenueCat★ 80 звёзд на GitHub

Установить revenuecat-ad-tracking в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

revenuecat-ad-tracking: track ad events in RevenueCat

Use this skill when the user wants their ad revenue and ad impressions reported to RevenueCat. The app keeps its existing ad SDK and mediation. RevenueCat only receives events: loaded, displayed, opened (clicked), revenue, failed to load, and the rewarded-ad funnel.

This is a wiring task across every place the app loads or shows an ad, not a feature you build once. A half-wired integration produces charts that look plausible and are wrong: impressions without revenue, click rates above 100%, fill rates at 0%. Take the time to find every ad call site, confirm what you cannot infer, and verify with sandbox events before you report done.

Prerequisite: Purchases.configure(…) runs before the first ad event is tracked. The rewarded-ad prompt events fire before any ad loads, so configure before showing the prompt too. Before configure, the manual path crashes on iOS, Android and KMP (Purchases.shared / Purchases.sharedInstance throw) and rejects the call on Flutter and React Native. The legacy Android adapter throws too, because loadAndTrack is reached through Purchases.sharedInstance.adTracker. The other adapters check Purchases.isConfigured and skip the event: silently on iOS, with a logged warning on Android Next-Gen, Flutter, React Native and Unity. Access the tracker inside the callbacks, not at construction time. If the app has no RevenueCat setup yet, run integrate-revenuecat first.

0. If the user pasted the dashboard prompt

The Ads page of the RevenueCat dashboard generates a prompt that starts with "Add RevenueCat ad tracking to this … app." and has Context, Task and Verify sections. It states the platform, the mediator, the integration path (adapter or manual), the minimum SDK version and, for Android, the Google Mobile Ads generation. Treat it as the source of truth: do not re-ask what it answers. The prompt has no integration steps of its own; it points back to this skill. Follow the remaining sections and read the matching platform file before you edit code. If the request only resembles the prompt's first line and has no Context section, it is a normal request: run section 1 in full.

1. Gather the facts before writing code

1a. Platform

Inspect the working directory, including subdirectories such as shared/, app/ or apps/*, and pick the first match, from top to bottom:

  1. React Native: package.json has a react-native-purchases entry, or react-native as a dependency → platforms/react-native.md.
  2. Flutter: pubspec.yaml exists at the project root → platforms/flutter.md.
  3. Unity: ProjectSettings/ProjectVersion.txt or Packages/manifest.json at the project root → platforms/unity.md.
  4. Kotlin Multiplatform: build.gradle.kts has a kotlin { … } multiplatform block, or depends on com.revenuecat.purchases:purchases-kmp* → platforms/kmp.md.
  5. Android (native): build.gradle(.kts) applies com.android.application (and is not KMP) → platforms/android.md.
  6. iOS (native): Package.swift, *.xcodeproj, *.xcworkspace, or Podfile at the project root → platforms/ios.md.

If several match, pick the outermost project, the one that owns the build. If the directory holds several unrelated apps side by side, use the one the user named. If still ambiguous, ask.

1b. Mediator

The mediator is the ad SDK the app talks to: the one whose classes the app's own code uses to request and show ads, and the one it initializes at startup. Under mediation, the other networks' SDKs are also in the dependency manifest, pulled in through the mediator's adapter packages, but the app never calls them. Treat those as networks, not mediators, even when the same company also sells a mediator.

Find it in this order:

  1. Read the app's ad code. The SDK that owns the load and show calls is the mediator.
  2. Confirm against the dependency manifest with the table below. A dependency the app code never calls, or that arrives only as another mediator's adapter package, is a network.
  3. Ask only when the app calls two ad SDKs directly, or when a dependency from the table has no code that uses it. Say what you found. Do not guess.
Dependency Mediator
GoogleMobileAds (SPM/CocoaPods), `com.google.android.gms:play
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • mediator-callbacks.md
  • platforms/android.md
  • platforms/flutter.md
  • platforms/ios.md
  • platforms/kmp.md
  • platforms/react-native.md
  • platforms/unity.md

FAQ

Что делает скилл revenuecat-ad-tracking?

Add RevenueCat ad monetization tracking to an app so ad impressions, clicks, revenue and rewarded ads appear in RevenueCat Charts next to subscription revenue. Use when the user asks to track ad revenue in RevenueCat, add RevenueCat ad tracking, integrate the RevenueCat AdMob adapter, report AdMob, AppLovin MAX, Unity LevelPlay (ironSource) or Unity Ads events to RevenueCat, set up ad monetization or ad LTV, or pastes the "Add RevenueCat ad tracking to this app" prompt from the Ads page of the RevenueCat dashboard, on iOS, Android, Kotlin Multiplatform, Flutter, React Native, or Unity. Also use when ad events are missing or look wrong on the RevenueCat Ads page.

Как установить скилл revenuecat-ad-tracking?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл revenuecat-ad-tracking запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить revenuecat-ad-tracking с