{
  "event": "thank_you",
  "event_parameters": [
    {
      "name": "source_event",
      "note": "The existing event the created event is built from. Here: page_view.",
      "required": true,
      "type": "string"
    },
    {
      "name": "condition_before",
      "note": "The condition before the edit: page_location contains /thank-you.",
      "required": true,
      "type": "string"
    },
    {
      "name": "condition_after",
      "note": "The condition after the edit: page_location contains /order-confirmed.",
      "required": true,
      "type": "string"
    }
  ],
  "rules": [
    "Modifications overwrite existing events. Be cautious about overwriting events to avoid unintended consequences.",
    "Never modify the page_view event: it will no longer collect pageview data for other pages.",
    "You must be a Viewer or above at the property level to modify an event in Analytics.",
    "A modification applies only to data collected after the edit; it does not rewrite history.",
    "This feature edits events created in Analytics. For events provided by Google, see the event documentation."
  ],
  "source": "Analytics Help \u2014 Create or modify key events (support.google.com/analytics/answer/12844695), opened 11 November 2026",
  "verified_example": {
    "arithmetic_check": {
      "checked_with": "Python 3.12.3, run 11 November 2026",
      "computation": "3 - 1",
      "matches_limit_field": true,
      "result": 2
    },
    "condition_after": {
      "operator": "contains",
      "parameter": "page_location",
      "value": "/order-confirmed"
    },
    "condition_before": {
      "operator": "contains",
      "parameter": "page_location",
      "value": "/thank-you"
    },
    "conditions": {
      "after": 2,
      "before": 3,
      "removed": 1
    },
    "event": "thank_you",
    "source": "Built from the Modify an event section of the Create or modify key events help page"
  }
}
