Skip to main content

How to Setup

Setting up SpeedVitals Real-User Monitoring is pretty straightforward but you'll need access to modify the site's code. If you have a WordPress site, we can automatically insert this code using our plugin and we will soon be rolling out plugins/apps for other platforms as well.

For non-WordPress sites, you can either self-host the script or use a CDN.

Before getting started, you will need to find the Site ID for your website. You can find this in the RUM Setup Page or on the Settings page of your RUM Dashboard.

Using a CDN

Add the following snippet on every subdomain/page that you want to track. Paste this snippet just before the closing of </head> tag.

<script data-rum-site-id="site_id" 
src="https://assets.speedvitals.com/vitals.min.js" defer></script>

Currently, we recommend using the CDN for most of the users since it is faster and easier to set up. Furthermore, as SpeedVitals RUM is in Beta, we are constantly making changes to our script so it will automatically get updated if you choose the CDN method.

We recommend using the defer attribute so that the script doesn't block loading other critical resources of the page.

Self-Hosting

Add the following snippet on every subdomain/page that you want to track. Paste this snippet just before the closing of the </head> tag.

<script data-rum-site-id="site_id" 
src="/path/to/vitals.min.js" defer></script>

The Self-hosting method is a great option the advanced users who want the script to have zero impact on the loading performance. However, we will only recommend it after the Beta testing phase is over and the script gets stable.

For WordPress

WordPress users can easily install our plugin from the official WordPress repository to enable Real User Monitoring (RUM) on their website.

Plugin Link: SpeedVitals RUM for WordPress

Here's how you can install the plugin:

  1. Log in to your WordPress admin panel
  2. Navigate to Plugins > Add New
  3. Search for 'SpeedVitals RUM', install and activate
  4. Click "Install Now"
  5. After installation, click "Activate Plugin"
  6. Go to Settings > SpeedVitals RUM to configure the plugin
  7. Get your Site ID from RUM Setup Page on SpeedVitals.com and paste it in the "Site ID" text box.

Other Platforms & SPA

Most JavaScript libraries with Soft navigations such as React are not supported as of yet. If you install the RUM script on a React site, you may get the incorrect data (or data of only the first visit of a session). We will soon be adding support for Soft Navigations.

Other platforms such as Drupal, Joomla, Ghost, Wix, Squarespace, etc can add our script using either the CDN or Self-host method. In the future, we will be make it easier for these platforms to add the script by creating plugins/apps/extensions for them.