Problem
Our is inserting its JavaScript instrumentation in a location that causes problems with markup or page load.
Solution
New Relic agents attempt to inject the JavaScript in the best location, but if you encounter problems, try these troubleshooting steps.
Verify whether browser monitoring is the cause by disabling browser monitoring.
If disabling browser monitoring solves the problem, investigate the source code for the page. Re-enable browser monitoring and check for the following possible issues:
- More than one instance of the
<html>
tag in the page (not in an iFrame). - More than one instance of the
<head>
or<body>
tag, or a missing<head>
or<body>
tag. - Occurrence of any
<head>
or<body>
tags within the page's JavaScript. - Use http://validator.w3.org to verify your page source, and check for serious markup validity issues or character encoding issues.
- More than one instance of the
Eliminate any conflicts you find by revising the page structure, disabling browser monitoring for that page, or switching to manually instrumenting via agent API for full control over script injection.
Review our compatibility list for known conflicts with other libraries that your site may be using.
If you encounter other situations, contact New Relic Support and provide an accessible link to your page or the source code for it. Ensure browser monitoring is enabled in your link or source code.