<@U07FJ89LFFB> how to preview a C# experiment
# ask-ai
f
@brash-pillow-71627 how to preview a C# experiment
o
A message from kapa.ai
To preview an experiment while it's still in the draft phase, you can add a query string to your URL. Here are the steps: 1. Turn on the "Include Drafts" toggle for your SDK Connection in GrowthBook. 2. Get the Experiment Id. You can find this on the right side of the experiment page under Settings. 3. Decide on the variation number you want to preview.
0
is the control,
1
is the 1st variation, and so on. 4. Join the Experiment Id and the variation number together with an equals sign. For example,
my-experiment-id=1
. This needs to go in the Querystring part of the URL (after a question mark). Here's a full example:
Copy code
<https://www.example.com/pricing?my-experiment-id=1>
Until an experiment is moved out of the "draft" phase and started, this is the only way to view it on your site. Please note that this method is not specific to C# or any other programming language. It's a general method applicable to any experiment you're running on GrowthBook. For more details, you can refer to the [GrowthBook documentation](https://docs.growthbook.io/app/visual#drafts-and-qa) or the [forum conversation](https://linen.growthbook.io/t/22668938/hello-i-can-t-seem-to-find-test-links-for-the-different-vari) where this method was discussed.