---
title: ignore (SPA API)
source: https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/ignore
---

## Syntax

```js
newrelic.interaction().ignore()
```

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

## Requirements

-   Browser Pro+SPA agent (v963 or higher)
-   If you're installing the browser agent via npm and building a custom agent with selected features, you must enable the `spa` feature when creating the `Agent` instance. In the `features` array, add the following:

    ```js
    import { Spa } from '@newrelic/browser-agent/features/spa';

    const options = {
      info: { ... },
      loader_config: { ... },
      init: { ... },
      features: [
        Spa
      ]
    }
    ```

    For more information, see the [npm browser installation documentation](https://www.npmjs.com/package/@newrelic/browser-agent#new-relic-browser-agent).

## Description

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()`](https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-apis/browser-spa-api-newrelicinteractionsave).

## Return values

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

## Examples

```js
router.addRoute('/uninteresting-route', () => {
  newrelic.interaction() // Get handle to current interaction.
    .ignore(); // Ignore this interaction to ensure it will not be saved, even if it has fulfilled the default heuristic that makes it valid.
  renderUninterestingRoute(); // Render route.
});
```
