Marketing Science 101: How to Analyze Geo-Based Campaigns With Synthetic Control

Mandy Liu22 May 2024

Problem

A marketing team runs a campaign in one location and wants to know how much it added. The test unit is a city, not a user. Comparing it with one other city is unreliable if the two already differed before launch, because the gap after launch mixes the campaign effect with the old difference.

The article shows how to build a comparison market from many other cities so that it follows the test city before launch.

Example from the article: a test in Austin, Texas, on simulated daily data from 40 US cities over 90 days (2021-01-01 to 2021-03-31), with a campaign launch on 2021-04-01.

Solution in brief

Use Meta's open-source GeoLift library to find weights over the other cities so that their weighted sum matches the test city over the pre-launch period. This weighted sum is the synthetic control. After launch, the gap between the test city and the control is read as the campaign's incremental effect.

Questions this case answers
  • How to estimate the causal effect of an intervention applied to one aggregate unit when randomization is impossible and only aggregate time series are available
  • How to construct a counterfactual for a single treated unit from a weighted pool of untreated units
  • How to measure the incremental lift of a campaign launched in one city when a user-level A/B test is not possible?
  • How to build a synthetic control market from a pool of other cities with Meta's GeoLift library?

Tools and methods

  • Synthetic control method — weighted combination of untreated geos used as the counterfactual for the test geo
  • GeoLift (R) — reads the data and computes the weights (GeoDataRead, GetWeights)
  • pandas, seaborn — combine weights with city data, plot the test city against the control
  • Geo experiment — the city is the unit of treatment
Continue reading — it's free

Google or a one-time email code. No password.