Installation


Web Analytics

Blue Radar offers two scripts for tracking web analytics.

  1. buoy.js - privacy friendly web analytics (no cookies and respects do-not-track requests)
  2. analytics.js - for internal websites: does not respect do-not-track requests

To get started simply copy either script to the <head> tag of your website replacing <insert_site_id> with your site id

<script
  src="https://cdn.blueradar.net/buoy.js"
  data-site="<insert_site_id>"
  defer
></script>

or

<script
  src="https://cdn.blueradar.net/analytics.js"
  data-site="<insert_site_id>"
  defer
></script>

Event Tracking

To track an event on your website all you need to do is add the br-track attribute to any element

For example: to track newsletter signups you can simply do

<form>
  <!-- ... -->
  <button br-track="newsletter-signup">Sign up</button>
</form>

You can add custom charts from the Blue Radar analytics dashboard to monitor your events

Alternatively, you can query the data using our API