<@U07FJ89LFFB> what does "Run traffic query by def...
# ask-ai
w
@brash-pillow-71627 what does "Run traffic query by default" do?
o
A message from kapa.ai
The "Run traffic query by default" is a setting in GrowthBook's organization settings. When this setting is enabled, it allows GrowthBook to run an additional query per experiment analysis to provide more insights on the traffic to your experiment over time and across dimensions. This is particularly useful in the health tab of an experiment where you can see a plot of experiment units by the first date they were exposed to the experiment and other related data. To disable this setting, you can navigate to Settings > General > Experiment Settings from the left navigation menu. Then in the "Experiment Health Settings" area, disable the "Run traffic query by default" toggle. Sources: - [GitHub PR > Add new settings for the new health tab](https://github.com/growthbook/growthbook/pull/1846) - [Forum Conversation > T > 18791649](https://linen.growthbook.io/t/18791649/how-can-i-disable-the-experiments-health-queries) - [App > Experiments (Results) > Experiment Health > Health Tab](https://docs.growthbook.io/app/experiment-results#health-tab)
w
@brash-pillow-71627 how do I add metrics to an experiment?
o
A message from kapa.ai
To add metrics to an experiment in GrowthBook, follow these steps: 1. First, you need to define what metrics you want to measure for your experiments. This can be done by creating Fact Tables for each type of event (Sign Up, Purchase, etc.). You can create a Fact Table by going to Metrics and DataFact Tables and clicking Add a Fact Table. Edit the default SQL if needed. Here's an example SQL query for an Orders fact table:
Copy code
sql SELECT     user_id,     timestamp,     qty,     amount   FROM orders
2. Once the Fact Table is created, you can easily add metrics on top of it. For example, a simple proportion metric, which measures the percentage of experiment users who complete an action at least once. 3. Metrics can be added from the Analysis → Metrics menu. 4. When creating an experiment or editing the metrics, there is a section titled “Select metric by tag” which will let you add all the metrics by the tag name to guardrail, secondary, and/or goal metrics. Remember, the metrics you want to add should be assigned to the same data source as the experiment, and should have the right randomization unit/identifier. If the metric does not appear for selection in the experiment setup, it is likely due to these reasons. Sources: - [Quick Start Guide > Experiment Analysis > Step 2. Add a Metric or Two](https://docs.growthbook.io/quick-start#step-2-add-a-metric-or-two) - [Forum Conversation > T > 18873532](https://linen.growthbook.io/t/18873532/hi-i-have-problem-on-adding-metric-into-experiment-metric-do) - [Using > GrowthBook Best Practices > Organization > Tags](https://docs.growthbook.io/using/growthbook-best-practices#tags)