Analytics for your Laravel Go app

Laravel Go is here, and SimpleStats supports it from day one. The official Go client 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 Go

Visitors

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

Registrations and logins

Name your User model in bootstrap/app.go, and every signup and login is linked to the channel it came from. It needs no extra methods.

Payments

Implement the TrackablePayment interface 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 Go

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 Go 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, Rust and Go

Same API, same dashboard. Track Laravel apps on PHP, Rust and Go side by side in the same team.

Setup

Up and running in 5 minutes

Install SimpleStats

# Add the client module
go get github.com/simplestats-io/laravel-go-client@latest

# .env
SIMPLESTATS_API_TOKEN=your-project-token

bootstrap/app.go

// bootstrap/app.go
Packages: []laravel.Package{
	simplestats.New(
		simplestats.TrackUsers[models.User](),       // no methods needed
		simplestats.TrackPayments[models.Payment](), // implements TrackablePayment
	),
},
  1. 1

    Add the client module with go get.

  2. 2

    Register the package in bootstrap/app.go and name your User model. It needs no extra methods.

  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 interface on your payment model to track revenue.

Every option is explained in the README on GitHub.

FAQ

Questions about Laravel Go analytics

Laravel Go is still in beta. Can I use the module in production?

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

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 Laravel apps on PHP, Rust and Go in the same team?

Yes. All 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 Go has no Cashier yet, so the module ships no provider adapters. Implement the TrackablePayment interface 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 module open source?

Yes. The module 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