---
title: Install VegaTracker for Dash.js
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/amazon-fire-tv/install-dashjs
---

Install the New Relic `VegaTracker` to monitor Dash.js video playback in your Amazon Fire TV application.

## Before you begin [#before-begin]

Complete the [common installation steps](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/amazon-fire-tv/get-started-with-amazon-fire-tv#install) first to create your application and retrieve your mobile application token.

## Install the tracker [#install]

### Install the Dash.js package

```shell
npm install @newrelic/video-dash --save
```

### Install device info

This step is optional. The device info library provides real device attributes — model, OS version, and UUID — in your video events. Without it, events use placeholder values for `deviceModel` and `deviceUuid`.

```shell
npm install @amazon-devices/react-native-device-info --save
```

### Initialize VegaTracker

Initialize `VegaTracker` inside the `onSurfaceViewCreated` callback. This ensures the player's async attach is complete before initialization.

Pass your Dash.js player instance and the `info` object. The `info` object must include your account ID, application token, and endpoint. If you installed the device info library, also pass device attributes as `info.deviceInfo`.

When playback ends, call `tracker.dispose()` to release resources.

For the initialization example, use the code snippet in the [New Relic guided install](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/amazon-fire-tv/get-started-with-amazon-fire-tv#install).

### View your data

Deploy your application and play a video. Go to **[one.newrelic.com](https://one.newrelic.com) > Streaming Video & Ads** to verify that data is flowing for your application.

## Next steps [#next-steps]

To continue, explore the following resources.

-   [View your data](https://docs.newrelic.com/docs/streaming-video-&-ads/view-data-in-newrelic/streaming-video-&-ads-features): Explore monitoring features and dashboards.
-   [Review compatibility requirements](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/compatibility-requirements): Check supported platforms and versions.
-   [Update the agent](https://docs.newrelic.com/docs/streaming-video-&-ads/update-the-media-agent): Keep your agent up to date.
