We are using the version of the new .NET replica. It appears that on output, New Relic parses the result to see if it contains any </head>
elements and inserts it <script type="text/javascript">var NREUMQ=...
script before that.
My problem is that on a separate closed source page there is a js line that reads ...
document.write("<html><head></head><body></body></html>");
... a new relic then turns it into ...
document.write("<html><head><script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script></head><body></body></html>");
... which causes severe headaches as the new relic code is not escaped.
What I would like to do is tell New Relic so that it does not enter the code on this page, since I cannot edit the page.
Hooray!
Here is the modified code in a nice format - for your viewing pleasure (not really in the answer) ....
document.write("<html><head><script type="text/javascript"> var NREUMQ=NREUMQ||[]; NREUMQ.push(["mark","firstbyte",new Date().getTime()]); </script></head><body></body></html>");
source share