integration-laravel

Instrument Amplitude analytics in Laravel applications with server-side event tracking.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires zumba/amplitude-php, and includes references (resource) components.

What problem does it solve?

Amplitude integration for Laravel applications helps you instrument analytics without heavy code changes, centralizing event tracking and user properties across the server and frontend.

Core Features & Use Cases

  • Environment variables-based configuration and non-invasive integration pattern aligned with Laravel structure.
  • End-to-end user tracking, identifying users on login/signup and capturing custom events like "User Signed Up" or "Dashboard Viewed".
  • Server-side event support for critical business operations (auth, API endpoints, payments, etc) and references for example projects.

Quick Start

Install dependencies, configure the Amplitude API key via environment variables, and run the Laravel server to begin tracking events.

Frequently Asked Questions about integration-laravel

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

FAQPage Schema
How do I track server-side events in Laravel with Amplitude?

You can track server-side events in Laravel with Amplitude by using a dedicated AmplitudeService wrapper to capture custom events across controllers, Livewire components, and API routes. It requires the zumba/amplitude-php composer package and environment variables for API keys.

What is the best way to identify users in Amplitude on Laravel login?

The best way to identify users in Amplitude on Laravel login is to instrument user identification during the login and signup flows. The integration centralizes tracking logic, automatically linking server-side events to authenticated users.

Does Amplitude integration work with Laravel Livewire components?

Yes, Amplitude integration works with Laravel Livewire components. The integration supports capturing server-side events across standard controllers, Livewire components, and API routes without requiring heavy code changes.

Do I need the zumba/amplitude-php package to instrument Amplitude in Laravel?

Yes, you need the zumba/amplitude-php composer package to instrument Amplitude in Laravel. The integration relies on this dependency to provide the AmplitudeService wrapper and enable non-invasive event tracking.

How does environment-based configuration work for Amplitude in Laravel?

Environment-based configuration for Amplitude in Laravel works by storing your Amplitude API keys in environment variables. This approach aligns with standard Laravel structure, keeping analytics configuration separate from application logic.

When should I use server-side Amplitude tracking instead of frontend analytics?

You should use server-side Amplitude tracking for critical business operations like authentication, API endpoints, and payments. It ensures reliable event capture for backend processes where frontend analytics might miss user interactions.