Syntax
newrelic_disable_autorum()
Disable automatic injection of the browser monitoring snippet on particular pages.
Requirements
Agent version 2.6.5.41 or higher.
Description
This call disables automatic injection of the browser monitoring agent for the current transaction. Call as early as possible. You can use this call to remove the JavaScript if the insertion is causing problems or if you are serving pages to third-party services that do not allow JavaScript (for example, Google's accelerated mobile pages).
ヒント
To instead enable browser monitoring with an API call, see:
Parameters
This call does not accept any parameters.
Return values
Returns true
if called within a New Relic transaction. Otherwise returns null
if outside a transaction (for example, if newrelic_end_transaction()
has been called).
Examples
function example() {
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
newrelic_disable_autorum();
}
...
}
For more help
If you need more help, check out these support and learning resources:
- Suggest a change and learn how to contribute to our PHP agent open source repository.
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.
その他のヘルプ
さらに支援が必要な場合は、これらのサポートと学習リソースを確認してください:
- Explorers Hubでは、コミュニティからのサポートを受けたり、ディスカッションに参加したりすることができます。
- 当社サイトで答えを見つけて、サポートポータルの使用方法を確認してください。
- Linux、Windows、およびmacOS向けトラブルシューティングツールであるNew Relic Diagnosticsを実行してください。
- New Relicのデータセキュリティとライセンスドキュメント をご確認ください。