KloudMate - Real User Monitori...
Get Started With RUM
10 min
this guide helps you set up real user monitoring (rum) with kloudmate for your websites setting up real user monitoring with kloudmate the rum agent is compatible with all the supported versions of the following browsers google chrome microsoft edge mozilla firefox apple safari chromium based browsers setting up real user monitoring with kloudmate step 1 navigate to rum module log in to your kloudmate account navigate to the real user monitoring page step 2 add the host website click add new website in the top right corner of the rum module enter the url of the website you want to integrate click continue step 3 configure the settings add an application name, environment, and version to identify the integration enable or disable session recording using the toggle, enabling it records user sessions set the session sample rate to decide what percentage of total sessions get recorded step 4 install the script copy the generated script paste it into the \<head> section of your website to verify installation, click the verify installation button , which shows the integration status managing user details to capture the current user's id and email, if available, add the following code kloudmaterum setglobalattributes({ userid 'u 123', useremail 'john\@example com'}) to clear out the user details, for example on user logout, use the following code kloudmaterum setglobalattributes({ userid null, useremail null }) sdk methods 1\ init(options) initializes the rum sdk options is an object that accepts the following properties property type description applicationname string the application's name endpoint string (required) kloudmate's collector endpoint https //otel kloudmate com 4318 rumaccesstoken string (required) kloudmate workspace's public api key deploymentenvironment string the application's environment example dev, prod, staging version string the applications' version example 0 0 1, 1 globalattributes object key value pairs these attributes will be added to every span sessionrecorder object { enabled boolean, options https //github com/rrweb io/rrweb/blob/master/guide md#options } configure session recording set enabled to true to record the session by default session recording is disabled ignoreurls (string | regexp)\[] urls to ignore 2\ setglobalattributes(attributes) parameter type description attributes object key value pairs 3\ getglobalattributes() returns the global attributes related resources https //docs kloudmate com/what is real user monitoring rum https //docs kloudmate com/rum interface