I've seen a world of different documentation on analytics settings, including Sitecore's docs and this StackExchange question. So I'm trying to get the best answer to this scenario.
We have a CM and two CDs. The CDs are load-balanced. There is a single domain involved (not multi-site). What is the best setting to use for each of the following on both CM and CD?
Xdb.Tracking.Enabled
Analytics.ClusterName
Analytics.HostName
Based on the reading I've done, here's what we ended up with so far:
- CM: Tried setting
Analytics.ClusterName
to point to one of the CDs using a hosts file entry, got the YSODTracker.Current
error. Ended up settingXdb.Tracking.Enabled
to false. - CDs: Set
Analytics.ClusterName
to match a localhost entry (the one used when installing Sitecore) and theAnalytics.HostName
to the domain name of the site. (What I didn't know before, settingAnalytics.HostName
causes the site to redirect to that domain).
But from a best configuration/best practice standpoint, is that right?