Unobtrusive Analytics for the Web
Observatory allows you to track basic actions on your website and shared short-urls, while respecting your users privacy.
To start collecting data from a page, three things need to be done.
- The host name of the page needs to be white-listed under the settings tab.
- All pages that should be tracked need to include the meta tag:
(The consent token can be found in the host white-list under the settings tab.)
<meta name="observatory" content="[host name consent token]">
- 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>