Analytics for your Laravel Rust app

Laravel Rust is here, and SimpleStats supports it from day one. The official client crate tracks visitors, registrations and payments right inside your app, so you see which channel brings paying customers.

See the setup

No credit card required

What it tracks

Everything the PHP client tracks, now in Rust

Visitors

UTM parameters, referrer, entry page, country and device of every unique visitor.

Registrations and logins

Implement the TrackablePerson trait on your user model, and every signup and login is linked to the channel it came from.

Payments

Implement the TrackablePayment trait on your payment model to see revenue, MRR and churn per channel.

Page views

Views per visitor and bounce rate, collected on the server without a script in the browser.

Custom events and properties

Track your own events and attach properties like plan or company size to users and visitors.

Privacy by design

No cookies of its own, no stored IP addresses and no consent banner. It only uses the session your app already has, and ad blockers never see it, because nothing runs in the browser.

Built for Rust

Fast apps deserve tracking that stays out of the way

Off the request path

API calls run as queued jobs, so no request waits for our API.

Batched page views

Your Rust app runs as one long-lived process, so page views are collected in memory and sent as one batch per minute.

One dashboard for PHP and Rust

Same API, same dashboard. Track a Laravel app on PHP and one on Rust side by side in the same team.

Setup

Up and running in 5 minutes

Install SimpleStats

# Add the client crate
cargo add simplestats-laravel-rust-client

# .env
SIMPLESTATS_API_TOKEN=your-project-token

src/app.rs

// src/app.rs
Application::configure()
    .with_providers(|providers| {
        providers.add(simplestats::SimplestatsServiceProvider::new().track_users::<User>());
    })

// src/models/user.rs
impl simplestats::TrackablePerson for User {}
  1. 1

    Add the client crate with Cargo.

  2. 2

    Register the service provider in src/app.rs and implement the TrackablePerson trait on your User model.

  3. 3

    Add the API token of your project to your .env file.

  4. 4

    Visitors and page views are tracked from the next request. Implement the TrackablePayment trait on your payment model to track revenue.

Every option is explained in the README on GitHub.

FAQ

Questions about Laravel Rust analytics

Laravel Rust is still in beta. Can I use the crate in production?

Yes. The crate is released as 1.0 and follows semantic versioning. Laravel Rust itself is still a 0.x beta, so we update the crate whenever the framework changes its APIs. It sends its data to the same API as our PHP client.

Do I need a cookie banner for Laravel analytics?

No, SimpleStats sets no cookies of its own and never stores IP addresses. It only uses the session your app already has. Google Analytics does set cookies, so visitors in the EU have to consent before it may run. Details are on our compliance page.

Does server-side tracking slow down my app?

No. The client sends its data through your queue, so no request waits for our API.

Can I track a Laravel app on PHP and one on Rust in the same team?

Yes. Both clients send to the same API, so every app shows up as its own project in the same dashboard, with the same KPIs and reports.

Which payment providers are supported?

All of them. Laravel Rust has no Cashier yet, so the crate ships no provider adapters. Implement the TrackablePayment trait on the model where you store payments, and every payment is tracked, no matter if it comes from Stripe, Paddle or any other provider.

Is the crate open source?

Yes. The crate is MIT licensed and on GitHub, and SimpleStats itself is open source under the AGPL-3.0 license.

See which channel brings your paying customers.

No credit card required