Laravel
Add the Revly snippet to your main Blade layout and it will be included on every page that extends it.
1. Edit your main layout
Open your root Blade layout (commonly resources/views/layouts/app.blade.php) and paste the snippet before the closing </head> tag. Replace YOUR_SITE_ID with the ID from your Revly site settings.
<!DOCTYPE html>
<html>
<head>
...
<script
defer
data-site-id="YOUR_SITE_ID"
src="https://cdn.revly.pro/tracker.js">
</script>
</head>
<body>
@yield('content')
</body>
</html>2. Redeploy
No migrations or asset compilation are needed. Redeploy your app and tracking will start immediately.
Need help? Reach out at contact@revly.pro