10 Must‑Know Features of Amplitude for Product Teams

Amplitude is a powerful product analytics platform that helps you understand user behavior, optimize features, and drive growth through data‑driven insights

0
116

At its core, Amplitude is a powerful product analytics platform that helps you understand user behavior, optimize features, and drive growth through data‑driven insights. This tutorial will walk you through the foundational steps of setting up and instrumenting event tracking in Amplitude Analytics—from account creation and SDK installation to defining events and validating data in the Dashboard. By the end, you’ll have a working event pipeline, custom dashboards to explore usage patterns, and best practices for maintaining clean, reliable event data as your product evolves.

Why Event Tracking Matters

Event tracking is the foundation of any modern analytics program. By instrumenting key user actions—like “Sign Up”, “Add to Cart”, or “Level Completed”—you unlock the ability to:

  • Analyze feature adoption and user flows

  • Measure the impact of product changes

  • Segment users by behavior

  • Identify retention drivers and friction points

Amplitude streamlines this process with a purpose‑built data pipeline and rich behavioral analytics tools, so you can focus on interpreting the data rather than wrangling it.

Creating Your Amplitude Project

  1. Sign Up

    • Go to Amplitude and create a free account.

    • Select “Create Project” and choose between a “Development” or “Production” workspace.

  2. Grab Your API Key

    • In the left sidebar, click Settings > Projects.

    • Copy the “API Key” for your project; you’ll need this when initializing the SDK.

Installing the Amplitude SDK

Amplitude provides first‑class SDKs for web, mobile, and backend environments. Below are quickstart snippets for the most common platforms.

Web (JavaScript) SDK

<!-- In your HTML’s <head> -->
<script type="text/javascript">
(
function(e,t){var n=e.amplitude||{_q:[],_iq:{}}; //…snip init code…
n.init("YOUR_API_KEY_HERE", null, {
apiEndpoint: "api.amplitude.com"
}); e.amplitude = n;
})(window, document);
</script>

Then, to log an event:

amplitude.getInstance().logEvent('Button Clicked', {
button_name: 'Subscribe',
page: 'Landing'
});

Mobile (iOS & Android) SDKs

iOS (Swift)

import Amplitude

Amplitude.instance().initializeApiKey("YOUR_API_KEY_HERE")
Amplitude.instance().logEvent("User Signed Up", withEventProperties: [
"method": "Email"
])

Android (Kotlin)

Amplitude.getInstance().initialize(this, "YOUR_API_KEY_HERE")
Amplitude.getInstance().logEvent("Item Purchased", JSONObject().apply {
put("item_id", "ABC123")
put("price", 19.99)
}

Defining Your First Events

Before you instrument, sketch out a tracking plan. Decide which user actions map to meaningful metrics and KPIs.

Event Naming Best Practices

  • Use Camel Case or Title Case: e.g., Search Performed, Profile Updated.

  • Be Descriptive and Consistent: Keep verbs first (e.g., Add to Cart vs. Cart Added).

  • Avoid PII: Never include personally identifiable data in event names or properties.

Event Properties and User Properties

  • Event Properties describe specifics of one action (e.g., product ID, price).

  • User Properties are global attributes of a user (e.g., subscription tier, signup date).

// Logging event with properties
amplitude.getInstance().logEvent('Video Played', {
video_id: 'VID_2024',
duration: 120
});

// Setting a user property
amplitude.getInstance().setUserProperties({
plan: 'Pro',
joined_at: new Date().toISOString()
})

Sending Events to Amplitude

When you call logEvent, events are queued locally then sent over HTTPS to Amplitude’s ingestion API. The SDK handles:

  • Batching: Groups multiple events into a single network request.

  • Retry Logic: Retries on failed connections.

  • Session Tracking: Automatically manages session start/end for web and mobile.

You can override defaults:

amplitude.getInstance().setOptions({
batchEvents: true,
eventUploadThreshold: 30, // send when 30 events queued
eventUploadPeriodMillis: 30000
})

Validating and Debugging Events

  1. Real‑Time View:

    • In Amplitude UI, go to Debug under Data to see incoming events in slices of a few seconds.

  2. Event Explorer:

    • Browse Events under Data to confirm names, properties, and event volume.

  3. Troubleshooting Tips:

    • Ensure your API key matches your project.

    • Check browser console or device logs for SDK errors.

    • Confirm network requests to api.amplitude.com/2/httpapi are succeeding.

Building a Basic Dashboard

Once data flows in, you can build dashboards to monitor key metrics.

  1. Create a Chart:

    • Click Charts > New Chart.

    • Select Event Segmentation for volume over time.

  2. Configure Your Query:

    • Choose your event (e.g., Button Clicked).

    • Add filters or segments (e.g., by button_name).

  3. Save to Dashboard:

    • Click Save, then Add to Dashboard.

    • Create or select an existing dashboard.

You now have a live view of how often your chosen event occurs.