---
title: Event tracking
source: https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/events/overview
---

## Event tracking methods

| Method                                                                                                                         | Description                                      |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
| [nrSendCustomEvent](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/events/nrsendcustomevent) | Send a custom event.                             |
| [nrSendSystemEvent](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/events/nrsendsystemevent) | Send a system event, type ConnectedDeviceSystem. |
| [nrSendVideoEvent](https://docs.newrelic.com/docs/streaming-video-&-ads/installation/roku/agent-api/events/nrsendvideoevent)   | Send a video event, type VideoAction.            |

## Examples

### Send custom event

```brightscript
nrSendCustomEvent(m.nr, "MyEvent", "MY_ACTION")
attr = {"key0":"val0", "key1":"val1"}
nrSendCustomEvent(m.nr, "MyEvent", "MY_ACTION", attr)
```

### Send system event

```brightscript
nrSendSystemEvent(m.nr, "MY_ACTION")
attr = {"key0":"val0", "key1":"val1"}
nrSendSystemEvent(m.nr, "MY_ACTION", attr)
```

### Send video event

```brightscript
nrSendVideoEvent(m.nr, "MY_ACTION")
attr = {"key0":"val0", "key1":"val1"}
nrSendVideoEvent(m.nr, "MY_ACTION", attr)
```
