home

AppDynamics On-Premises

Splunk Cloud PlatformSplunk EnterpriseData ManagementSplunk Observability CloudSplunk IT Service IntelligenceAppDynamics SaaSAppDynamics On-PremisesAppDynamics SAP AgentSplunk Enterprise Security 8Splunk Enterprise Security 7Splunk SOARSecurity OfferingsRelease Notes and UpdatesSupported Add-onsSplunk Style Guide
search
search
Splunk Cloud PlatformSplunk EnterpriseData ManagementSplunk Observability CloudSplunk IT Service IntelligenceAppDynamics SaaSAppDynamics On-PremisesAppDynamics SAP AgentSplunk Enterprise Security 8Splunk Enterprise Security 7Splunk SOARSecurity OfferingsRelease Notes and UpdatesSupported Add-onsSplunk Style Guide

search

AppDynamics On-Premises

AppDynamics On-Premises Contents

close
  • Overview

  • Get Started

  • Release Notes and References

  • Virtual Appliance (Self-Hosted)

  • Plan Your Deployment

  • Platform Installation Quick Start

  • Enterprise Console

  • Controller Deployment

  • EUM Server Deployment

  • Events Service Deployment

  • Synthetic Server Deployment

  • Secure the Platform

  • Upgrade Platform Components

  • Application Performance Monitoring

  • Observability for AI

  • expand_more

    End User Monitoring

    • expand_more

      25.12.0

      • expand_more

        End User Monitoring

        • Browser Monitoring

  • Database Visibility

  • Infrastructure Visibility

  • Analytics

  • Agent Management

  • Tag Management

  • Splunk AppDynamics Licensing

  • Related Resources

  • Extend AppDynamics

  • Accounts

  • Product Announcements and Alerts

  • Glossary

  • PDFs

  • Translated Documentation

  1. AppDynamics On-Premises (25.12.0)
  2. arrow_right
  3. End User Monitoring
  4. arrow_right
  5. End User Monitoring
  6. arrow_right
  7. Browser Monitoring
  8. arrow_right
  9. Browser Real User Monitoring
  10. arrow_right
  11. Configure the JavaScript Agent

list_altShow Contents

chevron_left

AppDynamics On-Premises

Configure the JavaScript Agent

chevron_right

Set the Exact Current Domain in the JavaScript Agent Cookie

This page describes how to set the current domain in the JavaScript Agent cookie.

The JavaScript Agent itself writes a session cookie to the page, for timing purposes. This cookie is set when the user clicks a link and the unload event is fired. By default, the cookie is set to the broadest possible version of the originating domain (such as, *.domain.com) to increase the likelihood that the next page opened in the same domain can access that cookie. See Cookies and Browser Monitoring Data.

In some cases, however, it may be necessary to limit the cookie to the full exact domain name. To do this, add a flag in the "adrum-start-time" script to the header of each page right after the <head> tag and before the entry that includes the location of the agent (adrum.js). The flag should read: window["adrum-use-strict-domain-cookies"] = true.

After you include the start-time line, the strict domain flag, and the agent, the <head> section in your monitored web pages should look something like this:

<head>
<script type='text/javascript' charset='UTF-8'>>
window["adrum-start-time"] = new Date().getTime();
window["adrum-use-strict-domain-cookies"] = true;
</script>
<script src='//cdn.appdynamics.com/adrum/adrum-latest.js' type='text/javascript' charset='UTF-8'></script>
...
</head>
AppDynamics Virtual Appliance
AppDynamics SaaS
AppDynamics On-Premises
Installation Guides
Splunk AppDynamics On-Premises

Last updated: December 16, 2025

chevron_leftchevron_right

Explore Topics

Splunk Cloud Platform

Splunk Enterprise

Data Management

Splunk Observability Cloud

Splunk IT Service Intelligence

AppDynamics SaaS

AppDynamics On-Premises

AppDynamics SAP Agent

Splunk Enterprise Security 8

Splunk Enterprise Security 7

Splunk SOAR

Security Offerings

Release Notes and Updates

Supported Add-ons

Splunk Style Guide

logo

Legal

Privacy

Website

Terms of Use

©2005-2025 Splunk Inc. All rights reserved.