LogRocket

  • Home
  • LogRocket SDK
  • Sign Up

The LogRocket Developer Hub

LogRocket helps product teams build better experiences for their users. By recording videos of user sessions along with logs and network data, LogRocket surfaces UX problems and reveals the root cause of every bug.

HomeGuidesRecipesJavaScript SDKReferenceChangelogDiscussionsPage Not FoundSearch{{ state.current().meta.title }}API Logs
    GuidesJavaScript SDK
discard

LogRocket

  • Getting Started
  • Quickstart
  • Data Collection
  • Frequently Asked Questions
  • Data Safety & Security
  • Privacy
  • Performance
  • Comparisons
  • GDPR
  • SDK Documentation

Product Features

  • Metrics
    • Tables
    • Timeseries
    • Funnels
  • Metrics Alerting
  • Metrics Insights
  • Positive Metrics Insights
  • Audit Log
  • Role-Based Access Control
  • Click Maps
  • Scroll Maps
  • Issues
  • Path Analysis

Troubleshooting

  • Session Recording Issues
  • Testing on localhost/VPN
  • CSS on private domain, Cordova, and Capacitor
  • Shadow DOM
  • Error reporting issues
  • Performance issues
  • Sourcemap issues
  • Supported Browsers
  • iFrames

General Information

  • What defines a session?
  • Disabling in dev environment
  • Disabling for certain users
  • Upgrading from <script> to NPM
  • Single Sign-On
  • Using LogRocket Live
  • Using LogRocket with Typescript
  • Using LogRocket with Ember CLI
  • Error Reporting
  • JS Source Maps
  • Using LogRocket Filters
  • Using LogRocket with server-side rendering
  • Using the LogRocket Timeline

Use Cases

  • Supporting Customers
  • Frontend Error Reproduction
  • Backend Error Reproduction
  • Understanding User Behavior

Plugins

  • GraphQL
  • MobX plugin
  • MobX-state-tree plugin
  • NgRx middleware
  • React plugin
  • Redux middleware
  • Vuex plugin

Integrations

  • Integrations Overview
  • Airbrake
  • Amplitude
  • AppDynamics
  • Bugsnag
  • Datadog
  • Doorbell.io
  • Drift
  • Dynatrace
  • Errorception
  • Google Analytics
  • Google Optimize
  • Heap
  • HelpScout
  • Honeybadger
  • Intercom
  • Jira
  • Kibana
  • Medallia
  • Mixpanel
  • New Relic
  • Optimizely
  • PagerDuty
  • Pendo
  • Raygun
  • Rollbar
  • Salesforce
  • Segment
  • Sentry
  • Splunk
  • ServiceNow
  • SolarWinds
  • Sumo Logic
  • TrackJS
  • Trello
  • Zendesk
  • Other Services

LogRocket

  • Getting Started
  • Quickstart
  • Data Collection
  • Frequently Asked Questions
  • Data Safety & Security
  • Privacy
  • Performance
  • Comparisons
  • GDPR
  • SDK Documentation

Product Features

  • Metrics
    • Tables
    • Timeseries
    • Funnels
  • Metrics Alerting
  • Metrics Insights
  • Positive Metrics Insights
  • Audit Log
  • Role-Based Access Control
  • Click Maps
  • Scroll Maps
  • Issues
  • Path Analysis

Troubleshooting

  • Session Recording Issues
  • Testing on localhost/VPN
  • CSS on private domain, Cordova, and Capacitor
  • Shadow DOM
  • Error reporting issues
  • Performance issues
  • Sourcemap issues
  • Supported Browsers
  • iFrames

General Information

  • What defines a session?
  • Disabling in dev environment
  • Disabling for certain users
  • Upgrading from <script> to NPM
  • Single Sign-On
  • Using LogRocket Live
  • Using LogRocket with Typescript
  • Using LogRocket with Ember CLI
  • Error Reporting
  • JS Source Maps
  • Using LogRocket Filters
  • Using LogRocket with server-side rendering
  • Using the LogRocket Timeline

Use Cases

  • Supporting Customers
  • Frontend Error Reproduction
  • Backend Error Reproduction
  • Understanding User Behavior

Plugins

  • GraphQL
  • MobX plugin
  • MobX-state-tree plugin
  • NgRx middleware
  • React plugin
  • Redux middleware
  • Vuex plugin

Integrations

  • Integrations Overview
  • Airbrake
  • Amplitude
  • AppDynamics
  • Bugsnag
  • Datadog
  • Doorbell.io
  • Drift
  • Dynatrace
  • Errorception
  • Google Analytics
  • Google Optimize
  • Heap
  • HelpScout
  • Honeybadger
  • Intercom
  • Jira
  • Kibana
  • Medallia
  • Mixpanel
  • New Relic
  • Optimizely
  • PagerDuty
  • Pendo
  • Raygun
  • Rollbar
  • Salesforce
  • Segment
  • Sentry
  • Splunk
  • ServiceNow
  • SolarWinds
  • Sumo Logic
  • TrackJS
  • Trello
  • Zendesk
  • Other Services

Basic Usage

  • Configuration
  • init()
    • release
    • console
    • network
    • dom
    • shouldCaptureIP
    • rootHostname
    • shouldDebugLog
    • mergeIframes
  • log()
  • getSessionURL()
  • version

Identifying Users

  • identify()
    • User Data
    • Troubleshooting

Capturing Errors

  • captureMessage()
  • captureException()

Capturing Events

  • track()
  • reduxMiddleware()