Gram PlatformGram ElementsExamplesCLISearch⌘KGram DocumentationAPI ReferenceFunctionstrackErrorCopy markdowntrackErrorFunction: trackError() trackError(error, context): void Track an error to Datadog RUM. Includes context about where the error originated. Parameters error unknown context ErrorContext Returns voidLast updated on January 13, 2026