Laravel analytics: client-side or server-side?

Google Analytics, Plausible and Fathom run as a script in the browser. SimpleStats runs inside your Laravel app. Here is what each approach sees, what it misses, and which one fits your project.

See the setup

No credit card required

The options

Three ways to add analytics to a Laravel app

Google Analytics

A JavaScript tag in your layout.

Good at
Free, with deep marketing reports and the Google Ads integration.
Keep in mind
Sets cookies, so visitors in the EU have to consent first. Ad blockers and declined banners hide part of your traffic. Linking revenue to your own users takes custom e-commerce events.
Best for
Marketing teams that already work in the Google stack.

Plausible / Fathom

A lightweight, privacy friendly script.

Good at
Clean dashboards, no cookies and no consent banner. Plausible even tracks revenue goals per campaign.
Keep in mind
Still a browser script, so ad blockers often filter it unless you proxy it. By design they do not know who your users are, so renewals, MRR and churn per channel stay out of reach.
Best for
Blogs and content sites where traffic is the main metric.

Server-side with SimpleStats

A Composer package inside your Laravel app.

Good at
Tracks visitors, registrations and payments as one chain, so you see revenue, MRR and churn per channel. Ad blockers never see it, and it sets no cookies.
Keep in mind
It sees requests, not clicks: no heatmaps, session recordings or scroll depth. Your app has to run on Laravel or plain PHP.
Best for
SaaS products and shops that want to know which channel brings paying customers.

The real difference is not privacy or accuracy, it is what the tool knows. A browser script sees page views. Your Laravel app also knows who signed up and who paid, so only a server-side tool can tell you which channel brings revenue.

Why us

How we compare

SimpleStats

  • Marketing attribution
  • Revenue per channel
  • User & Payment tracking
  • MRR, churn & retention
  • AI analytics assistant
  • Ad spend & ROAS / CAC
  • Server-side tracking
  • Ad-blocker proof
  • No JavaScript required
  • Laravel-native
  • No cookie banner required
  • Self-hosting option
  • Open source

Plausible

  • Marketing attribution
  • Revenue per channel
  • User & Payment tracking
  • MRR, churn & retention
  • AI analytics assistant
  • Ad spend & ROAS / CAC
  • Server-side tracking
  • Ad-blocker proof
  • No JavaScript required
  • Laravel-native
  • No cookie banner required
  • Self-hosting option
  • Open source

Fathom

  • Marketing attribution
  • Revenue per channel
  • User & Payment tracking
  • MRR, churn & retention
  • AI analytics assistant
  • Ad spend & ROAS / CAC
  • Server-side tracking
  • Ad-blocker proof
  • No JavaScript required
  • Laravel-native
  • No cookie banner required
  • Self-hosting option
  • Open source

Baremetrics

  • Marketing attribution
  • Revenue per channel
  • User & Payment tracking
  • MRR, churn & retention
  • AI analytics assistant
  • Ad spend & ROAS / CAC
  • Server-side tracking
  • Ad-blocker proof
  • No JavaScript required
  • Laravel-native
  • No cookie banner required
  • Self-hosting option
  • Open source

Google Analytics

  • Marketing attribution
  • Revenue per channel
  • User & Payment tracking
  • MRR, churn & retention
  • AI analytics assistant
  • Ad spend & ROAS / CAC
  • Server-side tracking
  • Ad-blocker proof
  • No JavaScript required
  • Laravel-native
  • No cookie banner required
  • Self-hosting option
  • Open source

Setup

Up and running in 5 minutes

Install SimpleStats

# Install the client
composer require simplestats-io/laravel-client

# Publish the config
php artisan simplestats-client:install

# .env
SIMPLESTATS_API_TOKEN=your-project-token
  1. 1

    Install the client with Composer and run the install command.

  2. 2

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

  3. 3

    Visitors are tracked from the next request. Add the TrackablePerson contract for registrations and connect Laravel Cashier or your own payment model for revenue.

Every step is explained in the installation guide.

FAQ

Questions about Laravel analytics

Do I need a cookie banner for Laravel analytics?

No, SimpleStats sets no cookies and never stores IP addresses. Google Analytics does set cookies, so visitors in the EU have to consent before it may run. Details are on our compliance page.

Can I keep Google Analytics or Plausible next to SimpleStats?

Yes. Both run independently. Many teams keep their script for traffic and add SimpleStats for registrations, payments and revenue per channel.

Does server-side tracking slow down my app?

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

My marketing site isn't built with Laravel. Does it still work?

Yes! Add one script tag from your Laravel app to your marketing site, no matter if it runs on Next.js, Nuxt, Astro, Webflow, Framer or WordPress. Its visitors are tracked, and their later signups and payments in your Laravel app are attributed to where they came from. Check out our documentation to get started.

Is SimpleStats open source?

Yes! SimpleStats is open source under the AGPL-3.0 license. The code is on GitHub, so you can verify exactly how your data is handled.

See which channel brings your paying customers.

No credit card required