We get a lot of questions from our LUX customers about specifying domains for LUX. Here's an FAQ.
Q: How do I specify the domains for LUX?
A: Choose the Team that you want to modify. Click on Settings. At the bottom click on "Edit LUX". Enter one or more domains separated by commas. Specifying just the main hostname (e.g., "yourdomain.com") automatically includes all subdomains. If you only want to include certain subdomains and exclude others, then enter the subdomains you want measured by LUX (e.g., "www.yourdomain.com", "staging.yourdomain.com", "support.yourdomain.com").
Q: Can I add LUX to multiple domains?
A: Yes, you can add LUX to as many domains as you want. Note that you're responsible for staying within your LUX budget.
Q: Can I add LUX to multiple Teams in my Org?
A: Yes, you can add LUX to as many Teams as you want. (Learn more about creating Teams.) Note that each Team has a different LUX_ID, so you need to make sure that you embed the LUX snippet that corresponds to each Team. Also note that you're responsible for making sure the total number of LUX page views across all your Teams stays within your LUX budget.
Q: How do I separate the data by domain?
A: Most of the time when a customer asks this question, they have separate groups of people in their company that want to view the data for domain A versus domain B, and they don't realize that they can add LUX to multiple Teams. If that's your situation, then the simple solution is to create two Teams (A & B) and put the appropriate domain in each Teams' Settings.
If you sometimes want to view the data separately (A vs B) but also view the data combined (A & B), then the best solution is use Customer Data to segment the data by domain.
Q: Can multiple Teams view the data for the same domain?
A: No. LUX data for a domain can only be associated with a single Team. A solution frequently used when an Org has multiple Teams that all want to view the same LUX data is create a new Team that everyone has access to. In that Team you then create a separate Favorites dashboard for each group within your Org. That way, each group sees the view of LUX data that is appropriate for them, and they aren't distracted by looking at data that isn't relevant. Note that performance budget notifications can be customized at the Favorites dashboard level, so people only get the notifications relevant to the performance budgets they've created.
Q: Can I add LUX to a domain behind the firewall?
A: Yes. Sometimes customers want to confirm that LUX works by deploying the code on a staging environment behind their firewall. This works fine. You just need to make sure to add that domain to your LUX Settings.