Create your application from installation instruction (Doc link: https://[account].middleware.io/installation#rum/javascript), Place this method just below the initialize script tag in the head section of your index.html file.
We have env and recording options available with the script.
To add user related information in the RUM data you can pass that data with RUM configuration as below (Here name and email both are fixed parameters),
Copy
Ask AI
// Add below key and value pair in above RUM configdefaultAttributes: { name: 'John Doe', email: 'john@email.com', user_type: 'admin', // it can be key value pairs}
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.