JavaScript SDK ⁠-⁠ setMetadata method

With this method, you can set the value of one of the metadata fields configured on the OpenReplay platform.

See metadata for more details.

setMetadata(key: string, value: string): void
  • key: string: The metadata key to save.
  • value: string: The value to save as metadata.

This method does not return any values. The information is saved directly as part of the replay and can be seen inside the OpenReplay platform.