get_browser_timing_header

For general information on how the Python agent API calls relate to each other, see the API guide.

get_browser_timing_header()
Generates New Relic Browser header for injecting the JavaScript agent.

Description

This call returns the New Relic Browser 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 value(s)

Returns New Relic Browser header JavaScript.

Example(s)

Manual Browser instrumentation

See Manually instrument Browser for instructions on how to use the header and footer calls.

For more help

Recommendations for learning more: