• /
  • Log in
  • Free account

ignore (browser SPA API)



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


Agent version nr-963 or higher.


This SPA method will cause an interaction to be ignored. It will not be saved or sent to New Relic. This method overrides any previous or subsequent calls to save().

Return values

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


router.addRoute('/uninteresting-route', () => {
newrelic.interaction() // Get handle to current interaction.
.ignore() // Ignore this interaction to ensure it will not be saved.
renderUninterestingRoute() // Render route.

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.