Docs

Add RUM to your Carrd site

2 min read

Installing Cronitor RUM on your Carrd 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.

We’ll make use of Carrd’s custom code embed to add analytics to your site.

Installation Steps

  1. If you haven’t already, add your site to Cronitor, give it any name you want to help you recognize it later.
  2. Copy the Javascript snippet that is shown to you after creating the website. Alternatively, you can always find it again from the Site dashboard page.
  3. Login to Carrd, click on Add and select Embed to create a new Embed element.
  4. Set the style to Hidden and select Head on the dropdown that appears next to it. This will make sure the element will be placed in the site’s <head> element once published.
  5. Paste your Site snippet into the Code box, and configure it to use hash-based routing with includeURLFragment: true. Here’s an example of what it should look like (don’t forget to replace both mentions of YOUR_SITE_ID):
<!-- 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',
        includeURLFragment: true,
    });
</script>
  1. You can optionally set the Carrd element label to “Cronitor RUM” so you can easily recognize it later.
  2. Click Done to save your changes and now Publish.

Check your installation

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!