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?
Based on the reading I've done, here's what we ended up with so far:
- CM: Tried setting
Analytics.ClusterNameto point to one of the CDs using a hosts file entry, got the YSOD
Tracker.Currenterror. Ended up setting
- CDs: Set
Analytics.ClusterNameto match a localhost entry (the one used when installing Sitecore) and the
Analytics.HostNameto the domain name of the site. (What I didn't know before, setting
Analytics.HostNamecauses the site to redirect to that domain).
But from a best configuration/best practice standpoint, is that right?