Docs

Add RUM to your Nuxt.js page

1 min read

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

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. Paste the snippet into the <head> section of the template. For example:

<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
    <head {{ HEAD_ATTRS }}>
        {{ HEAD }}

        Paste your Panelbear script here.

    </head>
    <body {{ BODY_ATTRS }}>
        {{ APP }}
    </body>
</html>

All done! That’s all you need to add analytics to your Nuxt.js project.

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!