Ends the New Relic SPA interaction at the current time.


Requires New Relic Browser agent version nr-963 or higher.

Access to this feature depends on your subscription level. New Relic's single page app (SPA) monitoring is only available with New Relic Browser Pro.


This SPA method will end the browser interaction at the current time. Any subsequent callbacks or requests will not be included as part of the New Relic SPA interaction.

Return value(s)

This method returns the same API object created by newrelic.interaction().


router.addRoute('/profile', () => {
    startSlowBackgroundAjax() // Start work that will continue past the end of the interaction
    renderProfileComponents().then(() => { // Do work that is part of the interaction
        newrelic.interaction().end() // End the interaction once the important components an the page have finished rendering