Install quietstats on Ruby on Rails
Add the one-line, cookie-free quietstats script to Ruby on Rails using the application layout. It takes about two minutes.
Your snippet
It looks like this; copy yours, with your own site ID, from the Manage page in quietstats.
<script data-host="https://quietstats.co.uk" data-dnt="true" src="https://quietstats.co.uk/js/script.js" id="YOUR_SITE_ID" async defer></script>845 bytes, no cookies, nothing stored on the visitor’s device.
Steps
- Copy your quietstats snippet from your site’s Manage page in quietstats.
- Open
app/views/layouts/application.html.erb. - Paste the snippet inside
<head>. - Deploy, then check the Live view in quietstats.
Good to know on Ruby on Rails
- With Turbo, links load without a full page reload: add the SPA add-on.
Source: Rails Guides: layouts and rendering, checked 4 December 2026. Menus can move; the help page has the current names.
Check it’s working
- Visit your site in a normal browser window (not one with Do Not Track or Global Privacy Control switched on: quietstats respects them and sends nothing).
- Open the Live view in quietstats: your visit appears within a few seconds.
- Nothing after a minute? See site checks, which test that the snippet is on your page.
Related pages
- All install guides and docs
- WordPress, Shopify, Webflow and Framer
- Plain HTML websites
- Next.js apps
- Install on Squarespace
- Install on Wix
- Install on Ghost
- Install on Google Tag Manager
- Install on Astro
- Install on Nuxt
- Install on SvelteKit
- Install on Hugo
- Install on Jekyll
- Install on Eleventy (11ty)
- Install on Gatsby
- Install on Docusaurus
- Install on React or Vue (Vite)
- Install on Django
- Install on Laravel
Try quietstats on your own site
Free for one site and 5,000 pageviews a month, no card needed. No cookies and nothing stored on your visitors’ devices.