• /
  • Log in

Browser agent and SPA API

actionText (browser SPA API)

Sets the text value of the HTML element that was clicked to start a browser interaction.

addPageAction (browser agent API)

Reports a browser PageAction event to New Relic One along with a name and optional attributes.

addRelease (browser agent API)

Adds a unique name and ID to identify releases with multiple JavaScript bundles on the same page.

addToTrace (browser agent API)

Adds a JavaScript object with a custom name, start time, etc. to an in-progress session trace.

createTracer (browser SPA API)

Times sub-components of a SPA interaction separately, including wait time and JS execution time.

end (browser SPA API)

Ends the SPA interaction at the current time.

finished (browser agent API)

Records an additional time point as "finished" in a session trace, and sends the event to New Relic One.

getContext (browser SPA API)

Stores values for the current SPA interaction asynchronously in Browser.

ignore (browser SPA API)

Overrides other SPA save() calls; ignores an interaction so it is not saved or sent to New Relic.

interaction (browser SPA API)

Returns a new API object that is bound to the current SPA interaction.

noticeError (browser agent API)

Identifies a browser error without disrupting your app's operations.

onEnd (browser SPA API)

Change the values associated with a SPA interaction before the interaction is saved .

save (browser SPA API)

Ensures a SPA browser interaction will be saved when it ends.

setAttribute (browser SPA API)

Adds a custom SPA attribute only to the current interaction in browser.

setCurrentRouteName (browser SPA API)

Gives SPA routes more accurate names than default names. Monitors specific routes rather than by default grouping.

setCustomAttribute (browser agent API)

Adds a user-defined attribute name and value to subsequent events on the page.

setErrorHandler (browser agent API)

Allows selective ignoring of known errors that the browser agent captures.

setName (browser SPA API)

Sets the name and trigger of a SPA's browser interaction that is not a route change or URL change.

setPageViewName (browser agent API)

Groups page views to help URL structure or to capture the URL's routing information.

Create issueEdit page
Copyright © 2021 New Relic Inc.