[Live Webinar] Next-Level O11y: Why Every DevOps Team Needs a RUM Strategy Register today!

Back to All Docs

CDN Browser SDK Installation Guide

Last Updated: Jan. 13, 2024

As part of our Real User Monitoring (RUM) toolkit, Coralogix offers multi-faceted Error Tracking, enabled by our CDN RUM Browser SDK.

Overview

Perfect for developers seeking client-side SDKs in web development and faster load times, our CDN Browser SDK detects and captures errors that arise within users’ browsers, unhandled exceptions, network errors, and application (custom logic) errors. The SDK collects essential error information and additional contextual data, such as browser details and URLs, and securely sends it to our platform through logs for further analysis.

For information on our NPM Browser SDK, view this page.

Configuration

Add the CDN script to your application.

<head>
  ...
<script src="<https://cdn.rum-ingress-coralogix.com/coralogix/browser/latest/coralogix-browser-sdk.js>"></script>
</head>

Initialization

Initialize the SDK using a JS or TS file.

JS File

window.CoralogixRum.init({
  application: 'app-name',
  environment: 'production',
  public_key: 'abc-123-456',
  coralogixDomain: 'EU2',
  version: 'v1.0.3',
  labels: {
    payment: 'visa',
  },
  ignoreErrors: ['some error message to ignore'],
});

TS File

window.CoralogixRum.init({
  application: 'app-name',
  environment: 'production',
  public_key: 'abc-123-456',
  coralogixDomain: 'EU2',
  version: 'v1.0.3',
  labels: {
    payment: 'visa',
  },
  ignoreErrors: ['some error message to ignore'],
});

// In case of warning from TSC
declare global {
  interface Window {
    CoralogixRum:any;
  }
}

Next Steps

Get started with Error Tracking. Use our dedicated user manual for support.

Additional Resources

DocumentationReal User Monitoring
RUM Integration Package
Error Tracking
Error Tracking: User Manual

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Contact us via our in-app chat or by emailing [email protected].

On this page

Live Webinar
Next-Level O11y: Why Every DevOps Team Needs a RUM Strategy
April 30th at 12pm ET | 6pm CET
Save my Seat