Skip to main content
Solved

Use of `domain` option

  • September 13, 2021
  • 2 replies
  • 652 views

what is the significance of domain option in Amplitude_options
amplitude.getInstance().init(amplitudeKey, id, AMPLITUDE_OPTIONS)

Best answer by MikkoKarvonen

rishi_ wrote:

what is the significance of domain option in Amplitude_options
amplitude.getInstance().init(amplitudeKey, id, AMPLITUDE_OPTIONS)


It’s related to defining the domain for the Amplitude HTTP cookies. You read more from here or searching for “cookie domains”.

View original
Did this topic help you find an answer to your question?

2 replies

MikkoKarvonen
Peer Moderator
Forum|alt.badge.img+3
  • Peer Moderator
  • 113 replies
  • Answer
  • September 14, 2021
rishi_ wrote:

what is the significance of domain option in Amplitude_options
amplitude.getInstance().init(amplitudeKey, id, AMPLITUDE_OPTIONS)


It’s related to defining the domain for the Amplitude HTTP cookies. You read more from here or searching for “cookie domains”.


Denis Holmes
Team Member
Forum|alt.badge.img+8
  • Team Member
  • 448 replies
  • September 14, 2021

Hi @rishi_ , to add on to Mikko’s comment, the domain option is used to set a custom domain for the Amplitude cookie. To include subdomains, add a preceding period, eg: .amplitude.com. You can read more about our JS options https://amplitude.github.io/Amplitude-JavaScript/Options/. I hope that helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings