---
title: "React Native analytics events | Nutrient React Native SDK"
canonical_url: "https://www.nutrient.io/guides/react-native/events-and-notifications/analytics/"
md_url: "https://www.nutrient.io/guides/react-native/events-and-notifications/analytics.md"
last_updated: "2026-05-18T12:22:04.662Z"
description: "Discover analytics events in Nutrient React Native SDK"
---

# Analytics events

Nutrient React Native SDK provides a [`NotificationCenter`](https://www.nutrient.io/api/react-native/NotificationCenter.html) class, which can be used to subscribe to analytics events. These events allow you to easily collect usage data based on a user’s activity taking place in Nutrient React Native SDK components.

## Registering for analytics events in the notification center

The example below shows how to register for an event listener to be notified when a document has loaded:

```js

  override componentDidMount() {
	this.pdfRef.current?.getNotificationCenter().subscribe(NotificationCenter.AnalyticsEvent.ANALYTICS, (event: any) => {
		console.log(event)
	});
  }

```

An event has a name and a dictionary of additional parameters.

## Unregistering from analytics events in the notification center

The example below shows how to unregister from document loaded listener events:

```js

  override componentWillUnmount () {
    this.pdfRef.current?.getNotificationCenter().unsubscribe(NotificationCenter.AnalyticsEvent.ANALYTICS);
  }

```

For more details and sample code, see the [`EventListeners.tsx` example](https://github.com/PSPDFKit/react-native/tree/master/samples/Catalog/examples/EventListeners.tsx) from the [Catalog example project](https://www.nutrient.io/guides/react-native/prebuilt-solutions/example-projects.md#pspdfkit-catalog).
---

## Related pages

- [Annotation events and notifications](/guides/react-native/events-and-notifications/annotation.md)
- [PDF form events and notifications](/guides/react-native/events-and-notifications/forms.md)
- [PDF viewer events](/guides/react-native/events-and-notifications/events.md)
- [Events and notifications](/guides/react-native/events-and-notifications.md)
- [Viewer events](/guides/react-native/events-and-notifications/viewer.md)

