# Analytics for Laravel and Filament – Pirsch Analytics

> With Pirsch, you can easily add powerful, unblockable web analytics to your Laravel and Filament PHP applications while protecting your customers' privacy.

🎉 Get 20% off Using Our Black Friday Coupon Code — [Learn More](https://pirsch.io/pricing)

# The Analytics Platform for Your Laravel and Filament Apps

With Pirsch, you can easily add powerful, unblockable web analytics to your Laravel and Filament PHP applications while protecting your customers' privacy.

[Start Your Free Trial](https://pirsch.io/signup) [View Live Demo](https://pirsch.pirsch.io/)

![Customers of Pirsch Analytics](https://pirsch.io/static/img/customers.png)

Trusted by 800+ Customers

![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/overview-light.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/dashboard-light.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/funnels-light.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/sessions-light.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/overview-dark.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/dashboard-dark.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/funnels-dark.svg "The Analytics Platform for Your Laravel and Filament Apps ") ![The Analytics Platform for Your Laravel and Filament Apps ](https://pirsch.io/static/img/sessions-dark.svg "The Analytics Platform for Your Laravel and Filament Apps ")

![Global X](https://pirsch.io/static/img/globalx.png "Global X") ![Maglr](https://pirsch.io/static/img/maglr.png "Maglr") ![Superblog](https://pirsch.io/static/img/superblog.png "Superblog") ![Stillalive Studios](https://pirsch.io/static/img/stillalive-light.png "Stillalive Studios") ![Stillalive Studios](https://pirsch.io/static/img/stillalive-dark.png "Stillalive Studios")

![Toffolo](https://pirsch.io/static/img/toffolo.png "Toffolo") ![Studio Lenzing](https://pirsch.io/static/img/studiolenzing.png "Studio Lenzing") ![Senja](https://pirsch.io/static/img/senja.png "Senja") ![Spectate](https://pirsch.io/static/img/spectate.png "Spectate")

## Effortless, Unblockable Server-Side Integration

### Easy-to-use Plugins and SDK

Integrate Pirsch Analytics seamlessly into your Laravel and Filament PHP applications. The plugin allows you to track page views and events in a non-blockable way on the server side, no JavaScript snippet or proxy required.

Leverage our PHP SDK or use an existing Filament dashboard widget to get insights right on your dashboard. The integration only takes a few minutes.

[Read the Docs](https://docs.pirsch.io/)

Laravel Filament PHP

```php
    // Middleware to track page views
->withMiddleware(function (Middleware $middleware) {
    $middleware->web(append: [
        \Pirsch\Http\Middleware\TrackPageview::class,
    ]);
})

// Or track page views manually
Pirsch::track();

// Send custom events
Pirsch::track(
    name: 'Button clicked',
    meta: [
        'Label' => 'Get started',
    ],
);
    
```

```php
        // Middleware to track page views
public function panel(Panel $panel): Panel {
    return $panel
        // ...
        ->middleware([
            // ...
            \Pirsch\Http\Middleware\TrackPageview::class
        ]);
}
    
```

```php
    require __DIR__ . '/vendor/autoload.php';

try {
    // Create the Pirsch client.
    $client = new Pirsch\Client('client_id', 'client_secret', 'example.com');
    // Send the page hit to Pirsch.
    $client->hit();
} catch(Exception $e) {
    // Something went wrong...
}
    
```

![Laravel, Filament and PHP](https://pirsch.io/static/img/laravel-filament-php.svg)

## Uncompromised, Privacy-Friendly Web Analytics

### No Cookie Banner

Say goodbye to consent banners: Pirsch works without cookies and never stores your visitors' personal identifiable information.

### Privacy-Friendly by Design

Built from the ground up with privacy in mind and with an open-source core, Pirsch offers uncompromising GDPR, CCPA, PECR, and Schrems II compliant data protection. All data is hosted on a secure server cluster in Germany.

[Learn More](https://pirsch.io/privacy-friendly-analytics)

GDPR

![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg) ![Star](https://pirsch.io/static/img/star.svg)

## Seemless Switch, Full Support

Pirsch is a web analytics tool designed for developers. Its extensive documentation and support make the transition easy. Transfer your data from Google Analytics, Fathom, or Plausible in just a few minutes.

### Keep Your Data

Make a smooth transition from Google Analytics, Fathom, or Plausible by importing your existing data. Try Pirsch Analytics free for 30 days with no credit card required.

[30-day Free Trial](https://pirsch.io/signup)

### Detailed Documentation

Pirsch is well documented. The documentation is constantly updated to ensure that you will find an answer to your questions.

[Read the Docs](https://docs.pirsch.io/)

### Personal Support

We're IT specialists, not salesmen. When you contact us for support, whether you have questions about integration details, networking, or programming, you can be sure to get competent, professional help. We're here to help, and we're here to find solutions to the challenges you face.

### Open-Source on GitHub

Much of Pirsch is open-source, including the core, SDKs, and libraries available. So you can see for yourself how Pirsch is developed and run. The code is available on GitHub, including a demo repository with sample applications and more.

![Pirsch Analytics Icon](https://pirsch.io/static/img/cta-light.svg) ![Pirsch Analytics Icon](https://pirsch.io/static/img/cta-dark.svg)

## Ready to Level up Your Analytics?

Try Pirsch Analytics free of charge for 30 days with no credit card required. Pick the **best Google Analytics alternative**, setting up your first website only takes a few minutes.

[Get Started For Free](https://pirsch.io/signup)
