{
  "objectives": {
    "d1": {
      "metric": "retention",
      "event": "session_started",
      "unit": "user",
      "anchor": "first_seen",
      "fromSeconds": 86400,
      "untilSeconds": 172800
    },
    "d3": {
      "metric": "retention",
      "event": "session_started",
      "unit": "user",
      "anchor": "first_seen",
      "fromSeconds": 259200,
      "untilSeconds": 345600
    },
    "revenue7d": {
      "metric": "revenue_per_user",
      "event": "purchase",
      "value": "amountMinor",
      "currency": "EUR",
      "unit": "user",
      "anchor": "first_seen",
      "untilSeconds": 604800,
      "refunds": {
        "event": "purchase_refunded",
        "purchaseId": "purchaseEventId",
        "value": "amountMinor"
      }
    }
  },
  "decisions": {
    "onboarding": {
      "mode": "settings",
      "assignment": "user",
      "variables": {
        "flow": {
          "type": "string",
          "values": [
            "guided",
            "explore"
          ],
          "default": "guided"
        }
      },
      "inputs": {},
      "optimize": {
        "d1": 2,
        "d3": 2,
        "revenue7d": {
          "weight": 1,
          "target": 10000
        }
      }
    },
    "offer": {
      "mode": "settings",
      "assignment": "session",
      "variables": {
        "presentation": {
          "type": "string",
          "values": [
            "compact",
            "detailed"
          ],
          "default": "compact"
        }
      },
      "inputs": {
        "productViews": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1000000,
          "buckets": [
            {
              "maximum": 2,
              "value": "0-2"
            },
            {
              "maximum": 1000000,
              "value": "3+"
            }
          ],
          "source": {
            "event": "product_viewed",
            "windowSeconds": 604800
          }
        }
      },
      "optimize": {
        "revenue7d": {
          "weight": 1,
          "target": 10000
        }
      }
    },
    "return_nudge": {
      "mode": "action",
      "actions": {
        "none": {
          "channel": "none"
        },
        "email_tomorrow": {
          "channel": "email",
          "template": "come_back",
          "delaySeconds": 86400
        },
        "push_later": {
          "channel": "push",
          "template": "continue",
          "delaySeconds": 21600
        },
        "in_app_now": {
          "channel": "in_app",
          "template": "pick_up_where_you_left_off",
          "delaySeconds": 0
        }
      },
      "optimize": {
        "d3": 2,
        "revenue7d": {
          "weight": 1,
          "target": 10000
        }
      }
    }
  },
  "measurement": {
    "d1": {},
    "d3": {},
    "revenue7d": {
      "target": 10000,
      "refundUntilSeconds": 1209600
    }
  },
  "guardrails": {
    "d3": {
      "maximumDrop": 0.02,
      "minimumUsers": 1000
    }
  }
}
