Skip to content
Unobtrusive web analytics
Ruby CSS HTML TypeScript Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
data
tests
views
web
.dockerignore
.gitignore
Dockerfile
Gemfile
LICENSE
README.md
app.rb
config.ru
docker-compose.yml

README.md

Observatory

Unobtrusive Analytics for the Web


Observatory allows you to track basic actions on your website and shared short-urls, while respecting your users privacy.

Adding a website to Observatory

To start collecting data from a page, three things need to be done.

  1. The host name of the page needs to be white-listed under the settings tab.
  2. All pages that should be tracked need to include the meta tag:
    <meta name="observatory" content="[host name consent token]">
    (The consent token can be found in the host white-list under the settings tab.)
  3. Include the telescope script in every page that should be tracked:
    <script id="observatory-script" src="https://your.host.com/static/scripts/telescope.js" async></script>

Optionally, the following id can be given to any element. (But only to one element.) The inner html of this node will be replaced with information about the users current DoNotTrack setting.

<p id="observatory-dnt-info"></p>
You can’t perform that action at this time.