Install Piqo on Laravel
Paste the snippet into your Blade master layout.
- Open your master layout — typically
resources/views/layouts/app.blade.php. - Add the script inside the
<head>block. - Clear the view cache:
php artisan view:clear.
{{-- resources/views/layouts/app.blade.php --}}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{{ config('app.name') }}</title>
<script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>
</head>
<body>
@yield('content')
</body>
</html>