Syntax
NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring([boolean $override])
Disable automatic injection of Browser monitoring snippet on specific pages.
Requirements
Compatible with all agent versions.
Must be called inside a transaction.
Description
Add this call to disable the automatic injection of Browser monitoring scripts on specific pages. You can also add an optional override to disable both manual and automatic injection. In either case, put this API call as close as possible to the top of the view in which you want Browser disabled.
ヒント
Compare GetBrowserTimingHeader()
, which adds the Browser script to the page.
Parameters
Parameter | Description |
---|---|
boolean | Optional. When |
Examples
Disable automatic injection
This example disables only the automatic injection of the snippet:
NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring();
Disable automatic and manual injection
This example disables both automatic and manual injection of the snippet:
NewRelic.Api.Agent.NewRelic.DisableBrowserMonitoring(true);
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicのデータセキュリティとライセンスドキュメント をご確認ください。