Skip to main content

Get Started with Geotests

This guide walks you through creating a Geotest experiment using Statsig. The steps include:

  1. Define your Geo Types
  2. Configure your Metric Source
  3. Create and Configure
  4. Evaluate Design Options
  5. Run Analysis

Define your Geo Types

First decide on one more geo types relevant to your business. Some of the most common are Postal Codes and DMAs (Designated Market Areas), but Statsig allows you to define any arbitrary geo type you'd like.

Geo types configuration interface

Configure your Metric Source

Assuming you've already added a metric source to Statsig, you can next indicate which column(s) represent the geo type(s) you've created.

Geo column mapping configuration screen

Create and Configure

  • Navigate to your Experiments page.
  • Click the + Create button.
  • In the modal, select Analyze to analyze existing experiment data in your warehouse.

Experiment creation modal with analyze option

  • Enter a name and description for your experiment.
  • Choose Geotest as the experiment type from the dropdown. Note: You do not need to specify an experiment source.

Geotest experiment type selection dropdown

In the Setup tab:

  • Define your hypothesis (optional).
  • Set the Geo Type (e.g., country_id).
  • Choose your Primary Metrics.

Geotest experiment setup configuration screen

note

Metric types in a Geotest experiment are limited to SUM, COUNT, and COUNT_DISTINCT due to the assumptions made in running inference. We'll be adding more metric types in the future. Feel free to reach out to Statsig with suggestions.

Configure:

  • Treatment Start/End Dates
  • Desired Effect Size % (this is the MDE you're hoping to measure; smaller MDEs will make finding a valid design harder)
  • Type of Test: 1-sided or 2-sided (click on your metric's name to see these options)
  • Alpha level (desired type I error rate, inverse of Confidence)
  • Optionally enable Budgeting or Holdouts

Experiment configuration settings interface

When you're happy with your initial settings, click "Use Experiment Designer" to begin to design process.

Experiment designer launch button

Here you can control:

  • Allowed Geo IDS: Apply a global filter for any geos allowed for control or treatment. Leave blank to use all geos found in your data source.
  • (Test) Inclusion List: Force some geos to be in your treatment cell. Leave blank to allow GeoLift to search for the most optimal set of geos without limits.
  • (Test) Exclusion List: Block some geos from being in your control cell. Leave blank to allow GeoLift to search for the most optimal set of geos without limits.

Geographic limitations configuration interface

When ready, click "Run Analysis" to generate a new Design Option Set based on your desired rules.

Evaluate Design Options

Once a Design Option Set has been created (usually takes a few minutes), it will be shown in your Experiment Designer tab. All design option sets generated are shown here, enabling you to look through prior design iterations as needed.

Experiment designer options display

Click into a completed design set (e.g. “Design Set 3”).

  • Compare Power, Cost, and Control/Test Allocation
  • Click View Cell Details to expand and see geo assignments
  • Select your desired design using the radio button, and clicking Save Design to Experiment.

Design option selection interface

Run Analysis

Geotest analysis results dashboard