Skip to content
Privatus Analytics

Frameworks

Cookieless analytics for Ruby on Rails

Status: Script tag or our gem

What you get on Ruby on Rails

  • Visitors, pages, sources, countries and devices on one dashboard, with no cookies, local storage or fingerprinting.
  • Goals and events from a click or a form, with a data-privatus-event attribute or one line of JavaScript.
  • Pages that change without a reload are counted once each, with no extra setup.

Install in three steps

  1. 1

    Add your site

    Sign up free and add your domain. The snippet with your site id is under Site settings → Tracking.

  2. 2

    Paste it in Ruby on Rails

    Put the snippet in the head of application.html.erb, or print it with our gem's helper.

  3. 3

    Publish and check

    Publish your site, open it in a browser, then follow Verify the installation.

Prefer a gem? Our gem privatus-analytics-rails is published on RubyGems and adds the tag with one view helper. The full guide shows both ways.

Start measuring without cookies

No cookies, no fingerprinting and no consent banner needed for measurement.

Your first workspace starts with 14 days of Pro, free. After that it moves to the free plan, with 10k events a month, 3 sites and 3 months of history. No card required.