---
title: "Flutter PDF viewer analytics | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/flutter/events-and-notifications/analytics/"
md_url: "https://www.nutrient.io/guides/flutter/events-and-notifications/analytics.md"
last_updated: "2026-05-15T09:08:03.624Z"
description: "Enable and manage analytics events in Nutrient Flutter SDK. Track user interactions effectively to gain insights into application performance and behavior."
---

# Analytics events and notifications

Nutrient Flutter SDK lets you listen to various events that occur when the end user interacts with the Nutrient SDK. These events can be used to track user behavior and to provide insights into how users are interacting with your application.

## Enabling analytics events

Analytics events are triggered for every action a user performs in the Nutrient SDK. This can lead to a large number of events being triggered, and as a result, may have an impact on the performance of your application. To avoid this, the events are disabled by default. To enable analytics events, use the following code snippet:

```dart

Nutrient.enableAnalytics(true);

```

## Usage

After enabling analytics events, start listening to the events by adding an event listener to the `Nutrient` class:

```dart

  Nutrient.analyticsEventsListener = (eventName, attributes) {
    if (kDebugMode) {
      print('Analytics event: $eventName with attributes: $attributes');
    }
  };

```

The `analyticsEventsListener` is a callback that’s called whenever an analytics event is triggered. The callback receives two parameters:

- `eventName` — The name of the event that was triggered.

- `attributes` — A map of attributes associated with the event.

## Supported events

For a full list of supported analytics events, refer to the following SDK documentation:

- [iOS](https://www.nutrient.io/guides/ios/events-and-notifications.md)

- [Android](https://www.nutrient.io/guides/android/events-and-notifications.md)

- [Web](https://www.nutrient.io/guides/web/events.md)

To have more control over the analytics events, use our native SDKs to implement custom analytics events. Refer to the [Nutrient Flutter SDK customization](https://www.nutrient.io/guides/flutter/customize.md) guide for more information.
---

## Related pages

- [PDF form events and notifications](/guides/flutter/events-and-notifications/forms.md)
- [PDF events and notifications](/guides/flutter/events-and-notifications.md)
- [Annotation events and notifications](/guides/flutter/events-and-notifications/annotation.md)
- [Viewer events and notifications](/guides/flutter/events-and-notifications/viewer.md)
- [Text selection events and notifications](/guides/flutter/events-and-notifications/text-selection.md)

