Syntax
get_browser_timing_header()
Generates a browser agent header for injecting the JavaScript agent.
Description
This call returns the browser agent JavaScript header snippet that you can use to enable browser monitoring. You might use this if automatic instrumentation is not possible for your application, or if you want to collect browser data for only specific pages.
This is a manual alternative to automatic insertion of this JavaScript by the agent. See the manual instrumentation instructions for how to use this method with get_browser_timing_footer
to enable browser monitoring.
This call must be called for every web request where you want to inject the JavaScript snippet. It cannot be called at global scope and cached.
Return values
Returns the browser agent header JavaScript.
Examples
Manual browser monitoring instrumentation
See Manually instrument browser monitoring for instructions on how to use the header and footer calls.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicの とandドキュメント をご確認ください。