Splunk
  • Splunk Enterprise

    Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.

    Release Notes

    Splunk Cloud Platform

    Collect, index, and visualize your data in the cloud for better operational intelligence.

    Release Notes

    Splunkbase

    Discover, share, and install apps and add-ons with the Splunk community on Splunkbase. Publish your own or add others to your Splunk platform instance.

    DATA MANAGEMENT

    • Common Information Model
    • Data Manager
    • DB Connect
    • Edge Processing
    • Forwarders
    • Indexing
    • Ingest Monitoring
    • Stream
    • Technical Add-Ons

    SEARCH AND ANALYTICS

    • AI Toolkit
    • Alerts
    • Analytics Workspace
    • Dashboard Studio
    • Federated Search
    • Knowledge Objects
    • Search and Reporting App
    • Simple XML Dashboards
    • SPL
    • SPL2

    ADMINISTRATION

    • Cloud Platform
    • Enterprise
  • Enterprise Security

    Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.

    Release Notes

    SOAR

    Streamline your security operations with a SOAR system that integrates orchestration, playbook automation, and case management to enhance threat response.

    ENTERPRISE SECURITY

    • Enterprise Security 8
    • Enterprise Security 7
    • Mission Control
    • Security Content Update
    • User Behavior Analytics

    SOAR

    • SOAR On-Premises
    • SOAR Cloud
    • App for SOAR
    • App for SOAR Export
    • Automation Broker

    RELATED APPS

    • Attack Analyzer
    • Asset and Risk Intelligence
    • App for PCI Compliance
    • App for Fraud Analytics
    • InfoSec App
    • Security Essentials
  • IT Service Intelligence

    Prevent disruptions and optimize operations when you monitor and analyze your IT service with predictive analytics and machine learning.

    Release Notes

    Content Packs

    Collect, index, and visualize your data in the cloud for better operational intelligence.

    Release Notes

    ITSI

    • Event Analytics
    • Entity Integration
    • Modules
    • Service Insights
    • REST APIs

    IT Ops

    • IT Essentials Work
    • IT Essentials Learn

    ADMINISTRATION

    • IT Service Intelligence
    • IT Essentials Work
    • Configuration File Reference

    EXTENSIONS

    • SAP Solutions
    • Infrastructure Monitoring Add-On
  • Splunk Observability Cloud

    Gain end-to-end visibility, troubleshoot in real-time, and optimize performance across infrastructure, applications, and user interfaces.

    Release Notes

    MONITORING

    • Alerts and Detectors
    • Application Performance Monitoring
    • Infrastructure Monitoring
    • Observability Cloud for Mobile
    • On-Call

    DATA MANAGEMENT

    • AI Assistant
    • Dashboards and Charts
    • Integrations
    • Log Observer Connect
    • Metrics, Metadata, and Events
    • OpenTelemetry Collector
    • SignalFlow Analytics
    • Search Reference

    ADMINISTRATION

    • Organization Management
    • FedRamp Support
    • App Development
    • API Reference
  • AppDynamics SaaS

    Monitor business application performance for cloud environments and IT infrastructure.

    Release Notes

    AppDynamics On-Premises

    Monitor business application performance for cloud environments and IT infrastructure.

    Release Notes

    SAP Agent

    An on-premises solution using AppDynamics On-Premises or Appdynamics Virtual Appliance (self hosted).

    Release Notes

    ESSENTIALS

    • Alert and Respond
    • Agent Management
    • Dashboards and Reports
    • Extensions
    • Licensing
    • Tag Management

    MONITORING

    • Analytics
    • Application Security Monitoring
    • Application Performance Monitoring
    • Database Visibility
    • End User Monitoring
    • Infrastructure Visibility

    ADMINISTRATION

    • AppDynamics SaaS
    • AppDynamics On-premises
  • Developer Documentation

    Build and deliver apps and integrations with SDKs, APIs and tools.

    Splunkbase

    Access and share apps and add-ons with the Splunk community on Splunkbase. Publish your own apps, or download and install others on your Splunk platform instance.

    PLATFORM

    • Developer Guide
    • APIs and tools
    • Tutorials
    • Downloads
    • Examples

    OBSERVABILITY

    • Developer Guide
    • REST APIs

    REFERENCE

    • Python 3 Migration
    • SOAR
    • SDK Reference
    • UI Toolkit
  • Resources

    Explore information on best practices, connect with community, or contact support.

    REFERENCE

    • Configuration Files Reference
    • REST APIs
    • SPL Reference
    • Splunk Style Guide
    • Search Tutorial
    • Validated Architectures

    Learn More

    • Free Trials & Downloads
    • Splunk Community
    • Splunk Answers
    • SPL 2 Reference
    • Splunk Lantern

    Support

    • AppDynamics Support
    • Cisco Support
    • Product Security Advisories
    • Splunk Support
    • System Status
English Japanese
Log In Sign Up
English Japanese
Log In Sign Up
  • Splunk Enterprise

    Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.

    Release Notes

    Splunk Cloud Platform

    Collect, index, and visualize your data in the cloud for better operational intelligence.

    Release Notes

    Splunkbase

    Discover, share, and install apps and add-ons with the Splunk community on Splunkbase. Publish your own or add others to your Splunk platform instance.

    DATA MANAGEMENT

    • Common Information Model
    • Data Manager
    • DB Connect
    • Edge Processing
    • Forwarders
    • Indexing
    • Ingest Monitoring
    • Stream
    • Technical Add-Ons

    SEARCH AND ANALYTICS

    • AI Toolkit
    • Alerts
    • Analytics Workspace
    • Dashboard Studio
    • Federated Search
    • Knowledge Objects
    • Search and Reporting App
    • Simple XML Dashboards
    • SPL
    • SPL2

    ADMINISTRATION

    • Cloud Platform
    • Enterprise
  • Enterprise Security

    Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.

    Release Notes

    SOAR

    Streamline your security operations with a SOAR system that integrates orchestration, playbook automation, and case management to enhance threat response.

    ENTERPRISE SECURITY

    • Enterprise Security 8
    • Enterprise Security 7
    • Mission Control
    • Security Content Update
    • User Behavior Analytics

    SOAR

    • SOAR On-Premises
    • SOAR Cloud
    • App for SOAR
    • App for SOAR Export
    • Automation Broker

    RELATED APPS

    • Attack Analyzer
    • Asset and Risk Intelligence
    • App for PCI Compliance
    • App for Fraud Analytics
    • InfoSec App
    • Security Essentials
  • IT Service Intelligence

    Prevent disruptions and optimize operations when you monitor and analyze your IT service with predictive analytics and machine learning.

    Release Notes

    Content Packs

    Collect, index, and visualize your data in the cloud for better operational intelligence.

    Release Notes

    ITSI

    • Event Analytics
    • Entity Integration
    • Modules
    • Service Insights
    • REST APIs

    IT Ops

    • IT Essentials Work
    • IT Essentials Learn

    ADMINISTRATION

    • IT Service Intelligence
    • IT Essentials Work
    • Configuration File Reference

    EXTENSIONS

    • SAP Solutions
    • Infrastructure Monitoring Add-On
  • Splunk Observability Cloud

    Gain end-to-end visibility, troubleshoot in real-time, and optimize performance across infrastructure, applications, and user interfaces.

    Release Notes

    MONITORING

    • Alerts and Detectors
    • Application Performance Monitoring
    • Infrastructure Monitoring
    • Observability Cloud for Mobile
    • On-Call

    DATA MANAGEMENT

    • AI Assistant
    • Dashboards and Charts
    • Integrations
    • Log Observer Connect
    • Metrics, Metadata, and Events
    • OpenTelemetry Collector
    • SignalFlow Analytics
    • Search Reference

    ADMINISTRATION

    • Organization Management
    • FedRamp Support
    • App Development
    • API Reference
  • AppDynamics SaaS

    Monitor business application performance for cloud environments and IT infrastructure.

    Release Notes

    AppDynamics On-Premises

    Monitor business application performance for cloud environments and IT infrastructure.

    Release Notes

    SAP Agent

    An on-premises solution using AppDynamics On-Premises or Appdynamics Virtual Appliance (self hosted).

    Release Notes

    ESSENTIALS

    • Alert and Respond
    • Agent Management
    • Dashboards and Reports
    • Extensions
    • Licensing
    • Tag Management

    MONITORING

    • Analytics
    • Application Security Monitoring
    • Application Performance Monitoring
    • Database Visibility
    • End User Monitoring
    • Infrastructure Visibility

    ADMINISTRATION

    • AppDynamics SaaS
    • AppDynamics On-premises
  • Developer Documentation

    Build and deliver apps and integrations with SDKs, APIs and tools.

    Splunkbase

    Access and share apps and add-ons with the Splunk community on Splunkbase. Publish your own apps, or download and install others on your Splunk platform instance.

    PLATFORM

    • Developer Guide
    • APIs and tools
    • Tutorials
    • Downloads
    • Examples

    OBSERVABILITY

    • Developer Guide
    • REST APIs

    REFERENCE

    • Python 3 Migration
    • SOAR
    • SDK Reference
    • UI Toolkit
  • Resources

    Explore information on best practices, connect with community, or contact support.

    REFERENCE

    • Configuration Files Reference
    • REST APIs
    • SPL Reference
    • Splunk Style Guide
    • Search Tutorial
    • Validated Architectures

    Learn More

    • Free Trials & Downloads
    • Splunk Community
    • Splunk Answers
    • SPL 2 Reference
    • Splunk Lantern

    Support

    • AppDynamics Support
    • Cisco Support
    • Product Security Advisories
    • Splunk Support
    • System Status
AppDynamics On-Premises
  • End User Monitoring
    • End User Monitoring
      • Overview of End User Monitoring
      • Experience Journey Map
      • Correlate Business Transactions for EUM
      • EUM Data
      • EUM Accounts, Licenses, and App Keys
      • Browser Monitoring
        • Overview of the Controller UI for Browser Monitoring
        • Differences Between Browser RUM and Browser Synthetic Monitoring
        • How to Use Browser RUM and Browser Synthetic Monitoring Together
        • Browser App Dashboard
        • Resource Performance Dashboard
        • JavaScript Errors Dashboard
        • Browser Real User Monitoring
          • Monitor Your Application
          • How Browser RUM Works
          • Set Up and Configure Browser RUM
          • License and Enable Browser RUM
          • Set Up and Access Browser RUM
          • Overview of the Controller UI for Browser RUM
          • Inject the JavaScript Agent
          • Configure the JavaScript Agent
            • Configure the JavaScript Agent in the Controller
            • Configure Shared-Hosting
            • Configure Self-Hosting
            • Next Steps - Inject JavaScript Snippet in Your HTML
            • Add Custom User Data to a Page Browser Snapshot
            • Set Custom Page Names
            • Set Custom Virtual Page Names
            • Set Ajax Request Names Based on Captured POST Parameters
            • Handle the window.onerror Event
            • Disable Browser Monitoring Programmatically
            • Set the Exact Current Domain in the JavaScript Agent Cookie
            • Limit Beacon Types
            • Alter or Eliminate the Page Title Captured in the Beacon
            • Modify Resource Sampling Options
            • Set the Origin Location of the Request
            • Hide All or Parts of the URL Query String
            • Configure the JavaScript Agent to Use HTTPS
            • Configure Resource URL Segments
            • Exclude Virtual Pages from Being Monitored
            • Set the Number of Ajax Requests
            • Capture Resource Timing Data Without Loss
            • Filter XHR Calls by URLs
            • Report Events with the JavaScript API
            • Disable Monitoring of Fetch API Calls
            • Disable the JavaScript Agent at Runtime
            • Add Nonce to adrum-ext.js
            • Disable the Primary Metric
            • Add Application Release Information
            • Disable Long Stack Trace Reporting
            • Measure the Page Loading Experience
            • Disable the ADRUM Header
          • Correlate Business Transactions for Browser RUM
          • Cookie Consent Management
          • Monitor Single-Page Applications
          • Enable the Content Security Policy (CSP)
          • Host a Geo Server
          • Browser RUM Metrics
          • Browser RUM Supported Environments
          • Browser RUM Countries and Regions by Geo Dashboard
          • Troubleshoot Browser RUM
      • Synthetic Monitoring
      • Mobile Real User Monitoring
AppDynamics On-Premises › End User Monitoring › End User Monitoring › Browser Monitoring › Browser Real User Monitoring › Configure the JavaScript Agent › Set the Exact Current Domain in the JavaScript Agent Cookie

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:

CODE
<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>
Share this page
  • LinkedIn
  • X
  • Facebook
  • Email
Share feedback about this page
Previous Disable Browser Monitoring Programmatically Next Limit Beacon Types
logo
©2005-2026 Splunk Inc. All rights reserved.
Legal Privacy Website Terms of Use