Enabling RUM Using Code Snippet

To achieve this, follow the steps below:

  1. In the eG administrative interface, select the Add / Modify option from the Components menu in the Infrastructure tile. Next, select Real User Monitor as the Component type in the page that appears next.
  2. Figure 1 will then appear listing the Real User Monitor components that are being currently managed by eG Enterprise. Click on the icon corresponding to the component you want to RUM-enable.

    Figure 1 : Choosing to add a Real User Monitor

  3. Figure 2 will then appear.

    Figure 2 : Details of the managed Real User Monitor

  4. You can RUM-enable a target web site / web application using an HTML code snippet or a JavaScript code snippet. To use an HTML code snippet, select HTML as the source file type in Figure 2.

  5. The HTML code snippet that you need to use will then appear in the text area below (see Figure 2). Copy that snippet and insert it in each of the HTML pages that you want to instrument for real user monitoring. Make sure you insert the snippet after the head tag and before any other script tags.

  6. On the other hand, if you want to instrument using a JavaScript code snippet, set Javascript as the source file type in Figure 2. The JavaScript code that you need to use for RUM-enabling the target will then appear in the text area below (see Figure 3).

    Figure 3 : Instrumenting using JavaScript code snippet

  7. Copy that code snippet and paste it in the JavaScript file.