Installing Cronitor RUM on your HTML website is simple - all you have to do is add our analytics snippet.
The analytics snippet is a small piece of code that runs on your website, collecting the metrics necessary to power your dashboard and provide performance insights. It’s cookieless and privacy-oriented.
<head>
section.For example:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Your website's head -->
<!-- Cronitor RUM -->
<script async src="https://rum.cronitor.io/script.js"></script>
<script>
window.cronitor = window.cronitor || function() { (window.cronitor.q = window.cronitor.q || []).push(arguments); };
cronitor('config', {
clientKey: 'YOUR_CLIENT_KEY',
debug: false,
});
</script>
</head>
<body>
<!-- Your website's content -->
</body>
</html>
After you have added our analytics script to your website, you should be able to see pageviews show up in the dashboard within a minute of the visitors coming into your website.
Need help? Check out common questions or reach out to us!