integration-flask

Wire Amplitude API key initialization, identify, and track calls in Flask projects.

28|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/amplitude/wizard --skill integration-flask-amplitude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-flask
Source: https://github.com/amplitude/wizard/tree/main/skills/integration/integration-flask
Command: npx skills add https://github.com/amplitude/wizard --skill integration-flask-amplitude

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Flask apps often lack structured analytics, making it hard to measure user engagement and diagnose issues in production. This Skill provides a ready-to-use Amplitude integration pattern for Flask, enabling reliable event tracking and user identification.

Core Features & Use Cases

  • Server-side event tracking for authentication flows (login, signup, logout) and API endpoints
  • User identification and property tracking via identify() to correlate events with users
  • Clear guidance on environment variable usage and best-practice event naming and data privacy

Quick Start

Run the sample workflow to add Amplitude init, identify, and track calls in your Flask app, using environment variables for the API key.

Frequently Asked Questions about integration-flask

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Amplitude event tracking to a Flask application?

You can integrate server-side Amplitude analytics in Flask by wiring API key initialization, identify calls, and track calls into your authentication endpoints and user interactions using environment variables for the API key.

What is the best way to track user authentication events in Flask with Amplitude?

You track user authentication flows in Flask by implementing server-side track calls for login, signup, and logout endpoints while using Title Case for event names and snake_case for properties to maintain structured analytics.

Does Amplitude integration for Flask require sending personally identifiable information?

No, Amplitude integration for Flask avoids sending PII in track properties. You use identify calls to correlate events with users and structure events with Title Case names and snake_case properties to maintain data privacy.

How do I structure Amplitude events and properties for Flask server-side tracking?

You structure Amplitude events for Flask server-side tracking by using Title Case for event names and snake_case for properties. This standardization ensures reliable event tracking and easier diagnosis of production issues.

Can I use environment variables for the Amplitude API key in a Flask project?

Yes, you can use environment variables for the Amplitude API key in a Flask project. This approach secures your initialization process and enables reliable server-side event tracking without hardcoding credentials.