Download and use the JavaScript tag API

With the JavaScript tag API, you can fine-tune all the Real User Monitoring data captured by Dynatrace. The JavaScript tag API is called directly from your application code and offers a lot of additional functionalities, including:

  • adding a user tag
  • defining custom user actions
  • reporting custom errors
  • adding session and user action properties

The JavaScript tag API is already included in the Real User Monitoring JavaScript snippet, which is injected automatically by OneAgent. If you haven't installed OneAgent, you can use agentless monitoring to add the JavaScript tag manually.

To download the related documentation and code:

  1. From the left-hand menu, select Settings.
  2. Under Web & mobile monitoring, select Advanced setup.
  3. Scroll down to JavaScript tag API and click Download documentation and samples. JavaScript tag API