# Kerdly

> Kerdly is profit analytics for subscription apps: it lines up App Store, Google Play and web revenue with ad spend from Meta, TikTok, Apple Ads, Google Ads, Reddit and others, and attributes each install and purchase to the ad that brought it. These docs cover setting up a project and integrating the Kerdly SDKs.

Every page below is Markdown. The full set in one file: https://kerdly.com/llms-full.txt

Key facts for coding agents:
- SDK endpoint: https://app.kerdly.com/api (the SDK default; don't change it).
- Keys: pk_live_/pk_test_ (app, public, one per platform), wk_live_ (web pages, public, one per project), sk_live_ (server, secret, never in client code).
- An Expo/React Native app that ships to both stores is two Kerdly apps with two app keys.
- Funnel: click + visit (web SDK) → identify (identify/setUserId, same user id everywhere) → install (app SDK) → trial/subscribe/purchase (app SDK events, or server events on the web) → renewal/cancel/refund (App Store/Google Play/RevenueCat for apps; server events on the web). Details: https://kerdly.com/docs/sdks/funnel.md
- Pick the guide that matches the business: website sales (guides/web-checkout), app with App Store/Google Play billing (guides/store-app), app with web payments via Stripe or RevenueCat (guides/app-web-payments), web landing page to app (guides/web-to-app).
- Dedupe: send each money event from one place only. Server events dedupe on event_id per app; ad networks dedupe on the event id Kerdly sends (store: <transaction id>:<event>, web: <visitor id>:<event name> = kerdly.eventId(name), server: your event_id). Details: https://kerdly.com/docs/guides/events-and-dedupe.md
- Store notifications: one URL per project, https://hooks.kerdly.com/<project>, for App Store Server Notifications; Google Play RTDN goes through a Pub/Sub topic Kerdly provides.
- MCP server for AI assistants (Claude, ChatGPT, Cursor): https://app.kerdly.com/api/mcp, sign in with your Kerdly account. Guide: https://kerdly.com/docs/guides/connect-ai-assistant.md
- SDK source (MIT): https://github.com/Kerdly/kerdly-sdk

## Get started

- [Quickstart](https://kerdly.com/docs/get-started.md): From sign-up to real numbers in an afternoon. Create your organization and project, connect your stores and ad networks, and add the SDK.
- [Connect App Store Connect](https://kerdly.com/docs/get-started/app-store.md): Give Kerdly read access to an iOS app's sales, installs and payouts with an App Store Connect API key, and turn on real-time subscription events.
- [Connect Google Play](https://kerdly.com/docs/get-started/google-play.md): Invite your project's service account in Play Console so Kerdly can read an Android app's earnings, sales estimates and installs. No key file needed.
- [Connect your ad networks](https://kerdly.com/docs/get-started/ad-networks.md): Bring spend, clicks and results per campaign from Meta, TikTok, Apple Ads, Google Ads, Reddit, ChatGPT Ads and AppLovin into your Kerdly project.
- [Docs for AI agents](https://kerdly.com/docs/agents.md): How coding agents such as Claude Code and Codex should read these docs, the Markdown versions of every page, prompts that hand an integration to an agent, and how an agent sets up a whole project through the Kerdly MCP server.

## Guides

- [Sell on your website](https://kerdly.com/docs/guides/web-checkout.md): A site or web app that sells subscriptions or one-time purchases through Stripe, Paddle or its own checkout. Track the ad click, the visitor, the sign-up and every charge, renewal and refund to the ad that started it.
- [App with App Store and Google Play billing](https://kerdly.com/docs/guides/store-app.md): An iOS or Android app that sells subscriptions through StoreKit or Play Billing. Connect the stores, add the SDK, link every purchase to its install, and get LTV per install day, campaign and ad, with deferred deep links for Meta and TikTok.
- [App with web payments](https://kerdly.com/docs/guides/app-web-payments.md): An iOS or Android app that also sells through a web checkout (Stripe, Paddle, RevenueCat Web Billing). Set up RevenueCat or your server's webhooks and the SDK so every purchase, in the store or on the web, lands on the same user and the same ad.
- [Web-to-app funnel](https://kerdly.com/docs/guides/web-to-app.md): Ads that send people to a landing page or straight to your Kerdly link, then to the App Store or Google Play. Set up the link, the landing page and the Meta and TikTok ads, and send the app's conversions back as website events from Kerdly's server.
- [Client events, server events and deduplication](https://kerdly.com/docs/guides/events-and-dedupe.md): Which events your app or page sends, which your server or the stores send, where each one counts, and how Kerdly and the ad networks count every event once.
- [Manage App Store subscriptions](https://kerdly.com/docs/guides/app-store-subscriptions.md): See and edit your iOS app's subscriptions in Kerdly: groups, products, prices, offers, offer codes and availability, next to what each product earns, and send new ones to Apple for review.
- [Connect an AI assistant](https://kerdly.com/docs/guides/connect-ai-assistant.md): Connect Claude, ChatGPT or Cursor to Kerdly through the Model Context Protocol (MCP), so your assistant can read your reports and, if you allow it, change your setup.

## SDKs

- [SDKs overview](https://kerdly.com/docs/sdks.md): Which Kerdly SDK to use, which key goes where, and the events every SDK reports.
- [Track the whole funnel](https://kerdly.com/docs/sdks/funnel.md): How each step from ad click to refund reaches Kerdly, on a website, in an app and from your server, and the ids that tie the steps together.
- [Web SDK](https://kerdly.com/docs/sdks/web.md): Add @kerdly/web or the kerdly.js snippet to a website or landing page, mark your app links, identify signed-in users and report purchases from your server.
- [Expo SDK](https://kerdly.com/docs/sdks/expo.md): Add @kerdly/expo to an Expo or React Native app, configure it with one key per platform, and report sign-ups, trials and purchases.
- [iOS SDK](https://kerdly.com/docs/sdks/ios.md): Add KerdlySDK to a native iOS app with Swift Package Manager, configure it with the app key, and report sign-ups, trials, purchases and deep links in Swift.
- [Android SDK](https://kerdly.com/docs/sdks/android.md): Add com.kerdly:kerdly-sdk to a native Android app from Maven Central, configure it with the app key, and report sign-ups, trials, purchases and deep links in Kotlin or Java.

## Optional

- [iOS SDK README](https://github.com/Kerdly/kerdly-sdk/blob/main/ios/README.md): native Swift integration.
- [Android SDK README](https://github.com/Kerdly/kerdly-sdk/blob/main/android/README.md): native Kotlin integration.
