• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

newrelic_get_browser_timing_footer(PHP 에이전트 API)

통사론

newrelic_get_browser_timing_footer([bool $include_tags])

다음을 반환합니다. HTML 출력 끝에 삽입할 스니펫입니다.

요구 사항

모든 에이전트 버전과 호환됩니다.

설명

HTML 출력의 맨 끝에 삽입할 JavaScript 문자열을 반환합니다. newrelic_get_browser_timing_header() 과 함께 이 호출을 사용하여 웹페이지에 브라우저 모니터링을 수동으로 추가합니다. 가능하다면 New Relic은 대신 New Relic UI를 통해 브라우저 모니터링을 활성화하거나 JavaScript 스니펫을 복사/붙여넣기할 것을 권장합니다. 이러한 옵션을 사용하는 방법에 대한 지침은 브라우저 모니터링 및 PHP 에이전트 를 참조하세요.

페이지에서 브라우저 모니터링 스크립트를 비활성화 하는 newrelic_disable_autorum() 를 비교하십시오.

매개변수

매개변수

설명

$include_tags

부울

선택 과목. 기본값은 true 입니다.

true 또는 생략된 경우 페이지의 HTML에 쉽게 포함할 수 있도록 문자열이 <script> 요소로 묶입니다.

반환 값

브라우저 모니터링 JavaScript 바닥글 문자열을 반환합니다.

웹 페이지 계측

function example(){
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
$newrelic_header = newrelic_get_browser_timing_header();
}
// Output to page
if (extension_loaded('newrelic')) { // Ensure PHP agent is available
$newrelic_footer = newrelic_get_browser_timing_footer();
}
}
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.