﻿---
title: Set up the APM Real User Monitoring JavaScript Agent
description: To start reporting your web page performance to Elastic APM, you must first enable the RUM endpoint in your apm-server configuration. Once the APM Server...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/apm/agents/rum-js/set-up-apm-real-user-monitoring-javascript-agent
products:
  - APM Agent
  - APM RUM JavaScript Agent
applies_to:
  - Elastic Cloud Serverless: Unavailable
  - Elastic Stack: Generally available
---

# Set up the APM Real User Monitoring JavaScript Agent
To start reporting your web page performance to Elastic APM, you must first [enable the RUM endpoint](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3028/solutions/observability/apm/apm-server/configure-real-user-monitoring-rum) in your `apm-server` configuration.
Once the APM Server endpoint has been configured, you can:
- [Install the Agent](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/apm/agents/rum-js/install-agent)
- [Configure CORS](https://www.elastic.co/elastic/docs-builder/docs/3028/reference/apm/agents/rum-js/configuring-cors)