# Aptabase Analytics for Android Apps

Aptabase is an open source, privacy-first alternative to Google Firebase Analytics for Android Apps: it collects no personal data, uses no cookies or device identifiers, and needs no consent banner.

## Get started

1. Register: [European Union](https://eu.aptabase.com/auth/register) or [United States](https://us.aptabase.com/auth/register) — takes less than a minute, no credit card required.

2. Create an app in the dashboard and copy its App Key from the **Instructions** menu (`A-EU-*` / `A-US-*`).

3. Instrument your app with the [Kotlin SDK for Aptabase](https://github.com/aptabase/aptabase-kotlin) — see the quickstart below.

4. Explore: events show up on your dashboard in real time.

## Quickstart: Kotlin (Android)

Package: `com.github.aptabase:aptabase-kotlin (JitPack)`
Install: `implementation("com.github.aptabase:aptabase-kotlin:0.0.8")`
Repo: https://github.com/aptabase/aptabase-kotlin

### Setup

Add the JitPack repository in `settings.gradle.kts`:

```kotlin
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://www.jitpack.io") }
    }
}
```

Then add the dependency in your module-level `build.gradle.kts`: `implementation("com.github.aptabase:aptabase-kotlin:0.0.8")`.

### Initialization

Initialize in your `Application` class:

```kotlin
class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        Aptabase.instance.initialize(applicationContext, "<YOUR_APP_KEY>")
    }
}
```

### Track events

```kotlin
Aptabase.instance.trackEvent("app_started")
Aptabase.instance.trackEvent("screen_view", mapOf("name" to "Settings"))
```

### How the SDK behaves

- Nothing is tracked automatically — you call the track function for each event.
- Every event is enriched automatically with OS name/version, app version and locale.
- Custom property values must be strings or numbers.
- Tracking calls are non-blocking and run in the background.
- Events are separated into Debug and Release build modes automatically (see https://aptabase.com/docs/build-modes).

## Why add analytics to your Android Apps?

- **Feature Usage** — Are you aware of the features in your app that users engage with most frequently? What configurations that majority of your users prefer? Gaining insights into these areas allows you to make well-informed decisions on future focus points for enhancing your Android/Kotlin app's user experience.
- **Location and Language** — Understanding the geographical distribution of your user base can significantly inform the decision to localize your Android/Kotlin app, thereby enhancing its global accessibility and visibility on the Google Play Store.
- **What Android versions are my users on?** — Aptabase proficiently collects data related to the various versions of Android utilized by your users. Such invaluable insights empower you to streamline your efforts in creating superior user experiences, meticulously customized to the most prevalent Android versions.

## Privacy

- Sessions are completely anonymous and untraceable. Data is never linked to an identifiable individual — no pseudonymisation, full anonymisation.
- No device identifiers, cookies, fingerprinting or long-term user identification.
- Aptabase collects no personal data, so your app stays compliant with strict privacy regulations without a consent banner.

## Pricing

Free up to 20,000 events/month. Paid plans from $10/month for 200,000 events up to $450/month for 50,000,000 events. No overage fees. Details: https://aptabase.com/pricing

More: [Documentation](https://aptabase.com/docs) · [All SDKs](https://aptabase.com/integrations) · [SDK reference](https://aptabase.com/llms-full.txt) · [About](https://aptabase.com/about)
