LogRocket JavaScript SDK

The LogRocket JavaScript SDK enables session replay and error monitoring for web applications. Once initialized with LogRocket.init(), it automatically records user sessions including DOM changes, network requests, console logs, and JavaScript errors. The SDK provides methods for user identification, session URL retrieval, and custom event tracking. It can be installed via npm or script tag and integrates with popular frameworks like React, Angular, and Vue.

API entry from apis.yml

apis.yml Raw ↑
aid: logrocket:javascript-sdk
name: LogRocket JavaScript SDK
tags:
- Browser
- Frontend Monitoring
- JavaScript
- SDK
- Session Replay
image: https://kinlane-productions2.s3.amazonaws.com/apis-json/apis-json-logo.jpg
baseURL: https://api.example.com
humanURL: https://docs.logrocket.com/reference/getting-started-with-sdks
properties:
- url: https://docs.logrocket.com/reference/getting-started-with-sdks
  type: Documentation
description: The LogRocket JavaScript SDK enables session replay and error monitoring for web applications.
  Once initialized with LogRocket.init(), it automatically records user sessions including DOM changes,
  network requests, console logs, and JavaScript errors. The SDK provides methods for user identification,
  session URL retrieval, and custom event tracking. It can be installed via npm or script tag and integrates
  with popular frameworks like React, Angular, and Vue.