10.6k views
0 votes
Where is the JavaScript tag inserted in your application(s) pages for Agentless RUM?

a) Within HTML comments
b) In the footer section of the HTML
c) Only in external JavaScript files
d) Within the section of HTML

User AppFzx
by
8.5k points

1 Answer

4 votes

Final answer:

For Agentless RUM, the JavaScript tag should be inserted within the head section of the HTML document. This enables the collection of performance data right from the start of the page load and ensures data is captured even for asynchronously loaded content.

Step-by-step explanation:

The JavaScript tag for Agentless Real User Monitoring (RUM) is typically inserted within the head section of an HTML document. This ensures that the monitoring code is loaded early in the page lifecycle and can capture performance data as other content is loaded. Inserting the JavaScript snippet into the head of the document also helps in monitoring resources that are downloaded asynchronously, as commonly found in modern web applications. As for the options provided:

  • Within HTML comments is incorrect since the code wouldn’t be executed.
  • Placing it in the footer section could miss some early performance metrics as the code would load too late.
  • Only in external JavaScript files is not the recommended practice for this purpose as it complicates the capturing of initial load times.
  • Within the head section of HTML is the correct option as it allows for full-page monitoring from the earliest point possible.
User Alex Volovoy
by
8.8k points