Poliogo

A Laravel cookie banner that blocks trackers before consent

Poliogo scans your Laravel project, classifies every cookie and tracking tag it finds, and hands you the exact files and router lines to paste, written for this framework. Laravel routes live in routes/web.php, which is a file no tool should append to blindly — middleware groups, route model binding and ordering all decide what a new line does.

Guided install, exact stepsBlocks before consentConsent Mode v2 · TCF 2.3
Laravel — first paint
Needed to run the siteAlways allowed
Login sessionSecurity checkLoad balancing
Measurement and advertisingHeld until consent
Google Analytics 4Laravel TelescopeSentryMeta Pixel
Lanes below the line stay held until a visitor chooses. Nothing above it ever waits.
16
frameworks and platforms covered
50+
tracking services classified
<5 min
signup to finished documents

Why most Laravel consent banners do not work

Blade layouts usually carry the analytics snippet in the master template, so it renders on every response including the ones where a visitor has explicitly refused. Server-rendered tags do not read localStorage. A banner that renders after that has recorded a decision, not enforced one — and the enforcement is the part the ePrivacy Directive and the GDPR are actually about.

  • ✓Poliogo's banner intercepts the tracking scripts rather than sitting beside them, so a tag that has not been consented to never executes.
  • ✓Strictly necessary cookies — session, security, cart — are never held, so nothing about your product breaks while a visitor is deciding.
  • ✓Every choice is written to a consent record with a timestamp and what was on screen at the time, which is the evidence a regulator asks for.

Installing it in Laravel

Laravel registers its routes in code rather than by filename, so no tool can add a page to it by writing a file and being confident it serves. Poliogo says so plainly and hands over the exact steps instead of opening a pull request that guesses at your router.

  • ✓You get a Blade view to create and the exact Route::view line for routes/web.php, so the page joins your existing middleware stack rather than sidestepping it.
  • ✓The scan reads composer.json alongside the JavaScript manifests, so Laravel Cashier, Socialite and the queue drivers are detected as the payment, login and processing services they are.
  • ✓Inertia and Livewire stacks work the same way — the policy page is a normal Blade view, which both leave alone.
1
Connect the repository

artisan identifies the project as Laravel, and the scan reads your manifests and source the same way it does everywhere else — in memory, keeping only the service list.

2
Approve the detected stack

Every service found, in plain English, with the evidence for each. Correct anything that is wrong before a word is generated.

3
Paste three things

The page (resources/views/legal/privacy.blade.php), the route line for your router, and the banner tag in resources/views/layouts/app.blade.php. Poliogo writes all three out for you — it will not guess at a router it cannot read.

4
Keep the monitoring

Document updates still arrive as pull requests, because the documents are files. Only the initial wiring was yours.

What you get on a Laravel project

The banner is one part of it. The scan underneath is what keeps the rest true.

It finds the trackers itself

Automatic

One scan of your Laravel project spots Google Analytics 4, Laravel Telescope, Sentry, Meta Pixel and around fifty more — and sorts each into strictly necessary, analytics or advertising without being told.

It holds them until people agree

Most banners record a choice and let the scripts run regardless. This one gates execution, which is the behaviour the ePrivacy Directive describes and the one an auditor can actually observe.

Policy pages, not just a banner

Privacy, cookie and terms pages written into your project — resources/views/legal/privacy.blade.php and its siblings — so they are yours, indexable, and styled by your own layout.

Geo-aware without a country list

European visitors get a consent gate, Californians an opt-out with Global Privacy Control honoured, Israeli visitors their own regime. GDPR is on every plan; CCPA and Israeli law from Starter.

It notices when you add something

Drift

The next scan of the repository is diffed against the snapshot your documents were generated from, so a new tag becomes an update you approve rather than a quiet inaccuracy.

Consent Mode v2 and TCF 2.3

Google Consent Mode v2 signals go out on every plan, so your ad reporting keeps modelling conversions for visitors who decline. IAB TCF 2.3, which many EU ad networks require, is included from Pro Builder.

Questions people ask

Will the banner slow down my Laravel site?

No. The banner is a small async script that loads in the background and paints in one frame — it is not a framework, a UI library or a tag manager. Your Core Web Vitals do not move, which matters because for most sites the consent banner is the only third-party script on a page that has any reason to be there.

Does it actually block Google Analytics 4 before someone agrees?

Yes, and that is the difference worth paying attention to. Blade layouts usually carry the analytics snippet in the master template, so it renders on every response including the ones where a visitor has explicitly refused. Server-rendered tags do not read localStorage. Poliogo holds the non-essential scripts back until a visitor chooses, rather than asking politely while they run anyway — which is the part regulators look at.

Where does the privacy policy page end up in a Laravel project?

At resources/views/legal/privacy.blade.php, which serves /privacy. It is a normal file in your project — your layout wraps it, your styles apply to it, and you can edit it afterwards like anything else in the repository.

Do I need to know which cookies my site sets?

No — that is the scan's job. It finds the tracking your project actually uses (Google Analytics 4, Laravel Telescope, Sentry and around fifty more), sorts each one into strictly necessary, analytics or advertising, and writes the cookie table for you. You confirm the list rather than compiling it.

Is this free?

The Free plan covers one project with a privacy policy, a cookie policy, the banner and unlimited manual re-scans — no credit card, and not a trial. Paid plans add Terms of Service, automatic background monitoring, more projects and the MCP server for Cursor and Claude Code.

What happens when I add a new tracker later?

The next scan of the repository sees it, updates the cookie classification and the policy text, and shows you exactly what changed in plain English before anything is published. On Free you run that scan whenever you like; paid plans watch for it in the background.

Put a working consent banner on your Laravel site

Connect the project and see what the scan finds in under 60 seconds. Free plan, no credit card, and nothing is written or published until you approve it. Poliogo is a compliance management technology platform, not a law firm, and this page is not legal advice.

Start free — no credit card

Poliogo is an automated code analysis and document display tool, not a law firm. Poliogo does not provide legal advice, representation, or guarantees of statutory compliance, ADA/WCAG certification, or legal immunity. Visual banners and generated documents are advisory tools and do not substitute for professional legal review.