Blue Radar offers two scripts for tracking web analytics.
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>
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