TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is an SDK? Meaning, SDK vs API, and how analytics SDKs work

An SDK is a kit of code and tools for adding a capability to your software. SDK vs API vs library, what an analytics SDK handles for you, the main types, and how to evaluate one before adding it.

Chen Yu Reviewed by Lucas Hayes Also called software development kit Last updated Nov 5, 2026 Glossary

Quick answer

An SDK (software development kit) is a package of libraries, documentation, sample code and tools that lets developers add a platform’s or service’s capability to their own software, often by wrapping that service’s API.

What is an SDK?

An SDK (software development kit) is a package of code and tools that lets developers add a capability to their own software without building it from scratch. A typical SDK includes a library you call from your code, documentation, sample code, and sometimes build tools or a test app.

Payment SDKs add checkout, map SDKs add maps, and analytics SDKs add event tracking: they record what users do in a website or app and send it to an analytics service.

SDK vs API vs library

TermWhat it isExample
APIA defined interface for asking a service to do something, usually over HTTPPOST /events with a JSON body
LibraryReusable code for one job, called from your programA date-formatting library
SDKA kit around one platform or service: libraries, docs, samples, tools, often wrapping an APIAn Android analytics SDK that batches events and calls the collect API
FrameworkA structure that calls your code and controls the flowReact, Flutter

The short version: an API is the door, an SDK is the toolkit that makes using the door easy and safe. You can always call an analytics API directly; the SDK handles the parts that are easy to get wrong.

What an analytics SDK does for you

Taking TapCub's client SDKs as a concrete example, an analytics SDK typically handles:

  • Automatic events. App launch, foreground and background, screen views, clicks and crashes, without writing tracking code for each.
  • Queueing and batching. Events are stored locally and sent in batches. TapCub's Android SDK keeps up to 10,000 events for 7 days in a local queue, so data survives offline periods.
  • Retry with backoff. Rate limits, server errors and network failures are retried from 1 second up to 5 minutes, instead of losing the batch.
  • Identity. A device or visitor id, and a login call that links anonymous activity to a known user.
  • Consent timing. A two-step start: store the configuration first with no collection and no network, then begin sending only after the user accepts the privacy policy.
  • Remote configuration. Sampling or switches changed in the console without shipping a new app version.

Initializing TapCub's Android SDK shows the two steps:

class App : Application() {
    override fun onCreate() {
        super.onCreate()
        TapCub.preInit(this, TapCubConfig(siteKey = "YOUR_SITE_KEY"))
    }
}

// after the user accepts the privacy policy
TapCub.init()

Types of analytics SDKs

TypeRuns inExamples in TapCub
WebThe browserclient.js script tag; Vue, React, Next.js and Nuxt reuse it
Native mobileiOS and Android appsSwift package, Android library on Maven Central
Cross-platformOne codebase, several platformsReact Native, Flutter, uni-app packages
Mini programWeChat, Alipay and Douyin mini programsOne npm package with per-platform entries
ServerYour backendNode.js, PHP, Python, Java and Go libraries for server-side events

Client SDKs see user behavior directly but can be blocked, delayed or lost. Server SDKs are reliable for business events such as orders and sign-ups but do not see clicks. Most products use both; see server-side tracking.

How to evaluate an SDK before you add it

  1. Size and performance. How much does it add to the app or page, and does it run work on the main thread?
  2. Permissions and data. What device data does it read, and can you turn parts off? Check against your privacy policy.
  3. Offline behavior. Does it queue and retry, and how much does it keep?
  4. Consent controls. Can collection wait for consent without losing the cold start?
  5. Maintenance. Release history, supported OS versions, open issues, changelog.
  6. Escape hatches. Can you disable it remotely or send events through an API instead?

Common SDK problems

  • Initialized too late. Calling setup after the first screen loses the launch and first screen view.
  • Unregistered app id. Many services silently drop data from apps they do not recognize.
  • Duplicate SDKs. Two analytics SDKs, or the same one initialized twice, double-count events.
  • Version drift. Old app versions in the wild keep old tracking behavior for months; plan for it in your tracking plan.

See also: Native app.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What does SDK stand for?

Software development kit: libraries, docs, samples and tools for building on a platform or adding a service to your software.

What is the difference between an SDK and an API?

An API is the interface a service exposes; an SDK is a toolkit that uses that API for you and adds conveniences such as batching, retries and authentication.

Do I need an SDK to send analytics data?

No. You can call an analytics API directly, but an SDK handles queueing, retries, identity and automatic events that are easy to get wrong by hand.

Are SDKs safe to add to an app?

Usually, if you check what data they read, whether you can switch features off, how they handle consent and how well they are maintained.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics