{
  "$meta": {
    "package": "@walkeros/web-destination-snowplow",
    "version": "4.2.1",
    "type": "destination",
    "platform": [
      "web"
    ],
    "docs": "https://www.walkeros.io/docs/destinations/web/snowplow",
    "source": "https://github.com/elbwalker/walkerOS/tree/main/packages/web/destinations/snowplow/src"
  },
  "schemas": {
    "mapping": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "context": {
          "description": "Context entities to attach to this event",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "schema": {
                "type": "string",
                "description": "Iglu schema URI for this context entity"
              },
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {},
                "description": "Data mapping for this context entity"
              }
            },
            "required": [
              "schema",
              "data"
            ],
            "additionalProperties": false
          }
        },
        "snowplow": {
          "description": "Snowplow-specific settings override",
          "type": "object",
          "properties": {
            "actionSchema": {
              "description": "Override action schema for this specific event",
              "type": "string"
            }
          },
          "additionalProperties": false,
          "title": "snowplow"
        }
      },
      "additionalProperties": false
    },
    "settings": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "collectorUrl": {
          "description": "Snowplow collector endpoint URL",
          "type": "string"
        },
        "appId": {
          "description": "Application identifier",
          "type": "string"
        },
        "trackerName": {
          "description": "Tracker instance name",
          "type": "string"
        },
        "platform": {
          "description": "Platform identifier",
          "type": "string"
        },
        "pageViewTracking": {
          "description": "Enable automatic page view tracking",
          "type": "boolean"
        },
        "snowplow": {
          "description": "Snowplow-specific ecommerce configuration",
          "type": "object",
          "properties": {
            "actionSchema": {
              "description": "Ecommerce action schema URI",
              "type": "string"
            },
            "productSchema": {
              "description": "Product entity schema URI",
              "type": "string"
            },
            "cartSchema": {
              "description": "Cart entity schema URI",
              "type": "string"
            },
            "transactionSchema": {
              "description": "Transaction entity schema URI",
              "type": "string"
            },
            "refundSchema": {
              "description": "Refund entity schema URI",
              "type": "string"
            },
            "checkoutStepSchema": {
              "description": "Checkout step entity schema URI",
              "type": "string"
            },
            "promotionSchema": {
              "description": "Promotion entity schema URI",
              "type": "string"
            },
            "userSchema": {
              "description": "User entity schema URI",
              "type": "string"
            },
            "customSchemas": {
              "description": "Custom entity schemas",
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "string"
              }
            },
            "currency": {
              "description": "Default currency code (ISO 4217)",
              "type": "string"
            }
          },
          "additionalProperties": false,
          "title": "snowplow"
        },
        "discoverRootDomain": {
          "description": "Discover root domain for cookies",
          "type": "boolean"
        },
        "cookieSameSite": {
          "description": "Cookie SameSite attribute",
          "type": "string",
          "enum": [
            "Strict",
            "Lax",
            "None"
          ]
        },
        "appVersion": {
          "description": "Application version",
          "type": "string"
        },
        "contexts": {
          "description": "Built-in context entities",
          "type": "object",
          "properties": {
            "webPage": {
              "description": "Web page context",
              "type": "boolean"
            },
            "session": {
              "description": "Client session context - enables client_session schema",
              "type": "boolean"
            },
            "performanceTiming": {
              "description": "Performance timing context",
              "type": "boolean"
            },
            "geolocation": {
              "description": "Geolocation context",
              "type": "boolean"
            }
          },
          "additionalProperties": false,
          "title": "contexts"
        },
        "anonymousTracking": {
          "description": "Enable anonymous tracking (no user identifiers)",
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "properties": {
                "withServerAnonymisation": {
                  "description": "Request server-side anonymisation",
                  "type": "boolean"
                },
                "withSessionTracking": {
                  "description": "Continue session tracking in anonymous mode",
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "plugins": {
          "description": "Snowplow plugins",
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Plugin script URL"
                  },
                  "name": {
                    "type": "array",
                    "items": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "string"
                      }
                    ],
                    "description": "[globalName, constructorName]"
                  },
                  "enableMethod": {
                    "description": "Override enable method name",
                    "type": "string"
                  },
                  "options": {
                    "description": "Options for enable method",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "url",
                  "name"
                ],
                "additionalProperties": false
              },
              {}
            ]
          }
        },
        "activityTracking": {
          "description": "Page ping configuration",
          "type": "object",
          "properties": {
            "minimumVisitLength": {
              "type": "number",
              "description": "Seconds before first ping"
            },
            "heartbeatDelay": {
              "type": "number",
              "description": "Seconds between pings"
            }
          },
          "required": [
            "minimumVisitLength",
            "heartbeatDelay"
          ],
          "additionalProperties": false,
          "title": "activityTracking"
        },
        "globalContexts": {
          "description": "Global context entities",
          "type": "array",
          "items": {}
        }
      },
      "additionalProperties": false
    }
  },
  "examples": {
    "env": {
      "init": {
        "window": {},
        "document": {
          "createElement": {
            "$code": "()=>({src:\"\",async:!1,setAttribute:()=>{},removeAttribute:()=>{}})"
          },
          "head": {
            "appendChild": {
              "$code": "()=>{}"
            }
          }
        }
      },
      "push": {
        "window": {
          "snowplow": {
            "$code": "()=>{}"
          }
        },
        "document": {
          "createElement": {
            "$code": "()=>({src:\"\",async:!1,setAttribute:()=>{},removeAttribute:()=>{}})"
          },
          "head": {
            "appendChild": {
              "$code": "()=>{}"
            }
          }
        }
      },
      "simulation": [
        "call:window.snowplow"
      ]
    },
    "step": {
      "addToCart": {
        "title": "Add to cart",
        "description": "A product add fires a Snowplow ecommerce add_to_cart action with product, cart, page, and user contexts.",
        "in": {
          "name": "product add",
          "data": {
            "id": "ers",
            "name": "Everyday Ruck Snack",
            "color": "black",
            "size": "l",
            "price": 420
          },
          "context": {
            "shopping": [
              "intent",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [],
          "consent": {
            "functional": true
          },
          "id": "aed1447eaa814989",
          "trigger": "click",
          "entity": "product",
          "action": "add",
          "timestamp": 1700000401,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "add_to_cart",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                "data": {
                  "id": "data.id",
                  "name": "data.name",
                  "category": "data.category",
                  "price": "data.price",
                  "currency": {
                    "key": "data.currency",
                    "value": "USD"
                  },
                  "quantity": {
                    "key": "data.quantity",
                    "value": 1
                  }
                }
              },
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/cart/jsonschema/1-0-0",
                "data": {
                  "total_value": "globals.cart_value",
                  "currency": {
                    "key": "globals.cart_currency",
                    "value": "USD"
                  }
                }
              },
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/page/jsonschema/1-0-0",
                "data": {
                  "type": "globals.page_type",
                  "language": "globals.language"
                }
              },
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/user/jsonschema/1-0-0",
                "data": {
                  "id": "user.id",
                  "email": "user.email",
                  "is_guest": {
                    "fn": {
                      "$code": "e=>{var o;return!!(null==(o=e.user)?void 0:o.id)||void 0}"
                    }
                  }
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "add_to_cart"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                  "data": {
                    "id": "ers",
                    "name": "Everyday Ruck Snack",
                    "price": 420,
                    "currency": "USD",
                    "quantity": 1
                  }
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/cart/jsonschema/1-0-0",
                  "data": {
                    "currency": "USD"
                  }
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/page/jsonschema/1-0-0",
                  "data": {}
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/user/jsonschema/1-0-0",
                  "data": {
                    "id": "us3r",
                    "is_guest": true
                  }
                }
              ]
            }
          ]
        ]
      },
      "checkoutStep": {
        "title": "Checkout step",
        "description": "A checkout view fires a Snowplow checkout_step action with the current step and option.",
        "in": {
          "name": "checkout view",
          "data": {
            "step": "payment",
            "currency": "EUR",
            "value": 462
          },
          "context": {
            "shopping": [
              "checkout",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [
            {
              "entity": "product",
              "data": {
                "id": "ers",
                "name": "Everyday Ruck Snack",
                "color": "black",
                "size": "l",
                "price": 420
              },
              "context": {
                "shopping": [
                  "checkout",
                  0
                ]
              },
              "nested": []
            },
            {
              "entity": "product",
              "data": {
                "id": "cc",
                "name": "Cool Cap",
                "size": "one size",
                "price": 42
              },
              "context": {
                "shopping": [
                  "checkout",
                  0
                ]
              },
              "nested": []
            }
          ],
          "consent": {
            "functional": true
          },
          "id": "143522af4e3a4ac1",
          "trigger": "load",
          "entity": "checkout",
          "action": "view",
          "timestamp": 1700000405,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "checkout_step",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/checkout_step/jsonschema/1-0-0",
                "data": {
                  "step": "data.step",
                  "option": "data.option"
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "checkout_step"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/checkout_step/jsonschema/1-0-0",
                  "data": {
                    "step": "payment"
                  }
                }
              ]
            }
          ]
        ]
      },
      "contextLoop": {
        "title": "Transaction with products",
        "description": "A transaction event adds one Snowplow product context per nested product via a loop mapping.",
        "in": {
          "name": "order complete",
          "data": {
            "id": "0rd3r1d",
            "currency": "EUR",
            "shipping": 5.22,
            "taxes": 73.76,
            "total": 555
          },
          "context": {
            "shopping": [
              "complete",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [
            {
              "entity": "product",
              "data": {
                "id": "ers",
                "name": "Everyday Ruck Snack",
                "color": "black",
                "size": "l",
                "price": 420
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            },
            {
              "entity": "product",
              "data": {
                "id": "cc",
                "name": "Cool Cap",
                "size": "one size",
                "price": 42
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            },
            {
              "entity": "gift",
              "data": {
                "name": "Surprise"
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            }
          ],
          "consent": {
            "functional": true
          },
          "id": "c58671e906b87031",
          "trigger": "load",
          "entity": "order",
          "action": "complete",
          "timestamp": 1700000407,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "transaction",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/transaction/jsonschema/1-0-0",
                "data": {
                  "transaction_id": "data.id",
                  "revenue": "data.total",
                  "currency": "data.currency"
                }
              },
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                "data": {
                  "loop": [
                    "nested",
                    {
                      "map": {
                        "id": "data.id",
                        "name": "data.name",
                        "price": "data.price"
                      }
                    }
                  ]
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "transaction"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/transaction/jsonschema/1-0-0",
                  "data": {
                    "transaction_id": "0rd3r1d",
                    "revenue": 555,
                    "currency": "EUR"
                  }
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                  "data": {
                    "id": "ers",
                    "name": "Everyday Ruck Snack",
                    "price": 420
                  }
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                  "data": {
                    "id": "cc",
                    "name": "Cool Cap",
                    "price": 42
                  }
                },
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                  "data": {
                    "name": "Surprise"
                  }
                }
              ]
            }
          ]
        ]
      },
      "init": {
        "title": "Initialization",
        "description": "Destination bootstrap creates a Snowplow tracker pointed at the configured collector URL.",
        "in": {
          "loadScript": true,
          "settings": {
            "collectorUrl": "https://collector.example.com",
            "appId": "my-app",
            "pageViewEvent": "page view"
          }
        },
        "out": [
          [
            "snowplow.newTracker",
            "sp",
            "https://collector.example.com",
            {
              "appId": "my-app",
              "platform": "web"
            }
          ]
        ]
      },
      "pageView": {
        "title": "Page view",
        "description": "A page view calls Snowplow trackPageView directly instead of a self-describing event.",
        "in": {
          "name": "page view",
          "data": {
            "domain": "www.example.com",
            "title": "walkerOS documentation",
            "referrer": "https://www.walkeros.io/",
            "search": "?foo=bar",
            "hash": "#hash",
            "id": "/docs/"
          },
          "context": {
            "dev": [
              "test",
              1
            ]
          },
          "globals": {
            "pagegroup": "docs"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [
            {
              "entity": "child",
              "data": {
                "is": "subordinated"
              }
            }
          ],
          "consent": {
            "functional": true
          },
          "id": "72b4ee9f59cceaca",
          "trigger": "load",
          "entity": "page",
          "action": "view",
          "timestamp": 1700000404,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "out": [
          [
            "snowplow.trackPageView"
          ]
        ]
      },
      "productView": {
        "title": "Product view",
        "description": "A product view fires a Snowplow ecommerce action with a product context schema and pricing fields.",
        "in": {
          "name": "product view",
          "data": {
            "id": "ers",
            "name": "Everyday Ruck Snack",
            "color": "black",
            "size": "l",
            "price": 420
          },
          "context": {
            "shopping": [
              "detail",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [],
          "consent": {
            "functional": true
          },
          "id": "10ae424930f74895",
          "trigger": "load",
          "entity": "product",
          "action": "view",
          "timestamp": 1700000400,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "product_view",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                "data": {
                  "id": "data.id",
                  "name": "data.name",
                  "category": "data.category",
                  "price": "data.price",
                  "currency": {
                    "key": "data.currency",
                    "value": "USD"
                  },
                  "brand": "data.brand",
                  "variant": "data.variant"
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "product_view"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/product/jsonschema/1-0-0",
                  "data": {
                    "id": "ers",
                    "name": "Everyday Ruck Snack",
                    "price": 420,
                    "currency": "USD"
                  }
                }
              ]
            }
          ]
        ]
      },
      "promoView": {
        "title": "Promo view",
        "description": "A promotion visible event fires a Snowplow promo_view action with a promotion context.",
        "in": {
          "name": "promotion visible",
          "data": {
            "name": "Setting up tracking easily",
            "position": "hero"
          },
          "context": {
            "ab_test": [
              "engagement",
              0
            ]
          },
          "globals": {
            "pagegroup": "homepage"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [
            {
              "entity": "child",
              "data": {
                "is": "subordinated"
              }
            }
          ],
          "consent": {
            "functional": true
          },
          "id": "0a232495fa3f95d0",
          "trigger": "visible",
          "entity": "promotion",
          "action": "visible",
          "timestamp": 1700000403,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "promo_view",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/promotion/jsonschema/1-0-0",
                "data": {
                  "id": "data.id",
                  "name": "data.name",
                  "creative_id": "data.creative_id",
                  "type": "data.type",
                  "position": "data.position",
                  "slot": "data.slot"
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "promo_view"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/promotion/jsonschema/1-0-0",
                  "data": {
                    "name": "Setting up tracking easily",
                    "position": "hero"
                  }
                }
              ]
            }
          ]
        ]
      },
      "structuredEvent": {
        "title": "Struct event",
        "description": "A custom event is tracked via Snowplow trackStructEvent with category, action, label, property, and value.",
        "in": {
          "name": "product visible",
          "data": {
            "id": "ers",
            "name": "Everyday Ruck Snack",
            "color": "black",
            "size": "l",
            "price": 420,
            "position": 3,
            "promo": true
          },
          "context": {
            "shopping": [
              "discover",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [],
          "consent": {
            "functional": true
          },
          "id": "29abb29c51c3c42e",
          "trigger": "load",
          "entity": "product",
          "action": "visible",
          "timestamp": 1700000406,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "settings": {
            "struct": {
              "category": {
                "value": "ecommerce"
              },
              "action": {
                "value": "impression"
              },
              "label": "data.name",
              "property": "data.color",
              "value": "data.price"
            }
          }
        },
        "out": [
          [
            "snowplow.trackStructEvent",
            {
              "category": "ecommerce",
              "action": "impression",
              "label": "Everyday Ruck Snack",
              "property": "black",
              "value": 420
            }
          ]
        ]
      },
      "transaction": {
        "title": "Transaction",
        "description": "A completed order fires a Snowplow ecommerce transaction action with transaction id, revenue, tax, and shipping.",
        "in": {
          "name": "order complete",
          "data": {
            "id": "0rd3r1d",
            "currency": "EUR",
            "shipping": 5.22,
            "taxes": 73.76,
            "total": 555
          },
          "context": {
            "shopping": [
              "complete",
              0
            ]
          },
          "globals": {
            "pagegroup": "shop"
          },
          "custom": {
            "completely": "random"
          },
          "user": {
            "id": "us3r",
            "device": "c00k13",
            "session": "s3ss10n"
          },
          "nested": [
            {
              "entity": "product",
              "data": {
                "id": "ers",
                "name": "Everyday Ruck Snack",
                "color": "black",
                "size": "l",
                "price": 420
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            },
            {
              "entity": "product",
              "data": {
                "id": "cc",
                "name": "Cool Cap",
                "size": "one size",
                "price": 42
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            },
            {
              "entity": "gift",
              "data": {
                "name": "Surprise"
              },
              "context": {
                "shopping": [
                  "complete",
                  0
                ]
              },
              "nested": []
            }
          ],
          "consent": {
            "functional": true
          },
          "id": "af4160bac8b17f0e",
          "trigger": "load",
          "entity": "order",
          "action": "complete",
          "timestamp": 1700000402,
          "timing": 3.14,
          "source": {
            "count": 1,
            "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
            "type": "collector",
            "schema": "4"
          }
        },
        "mapping": {
          "name": "transaction",
          "settings": {
            "context": [
              {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/transaction/jsonschema/1-0-0",
                "data": {
                  "transaction_id": "data.id",
                  "revenue": "data.total",
                  "currency": {
                    "key": "data.currency",
                    "value": "USD"
                  },
                  "payment_method": {
                    "value": "credit_card"
                  },
                  "tax": "data.taxes",
                  "shipping": "data.shipping"
                }
              }
            ]
          }
        },
        "out": [
          [
            "snowplow.trackSelfDescribingEvent",
            {
              "event": {
                "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/snowplow_ecommerce_action/jsonschema/1-0-2",
                "data": {
                  "type": "transaction"
                }
              },
              "context": [
                {
                  "schema": "iglu:com.snowplowanalytics.snowplow.ecommerce/transaction/jsonschema/1-0-0",
                  "data": {
                    "transaction_id": "0rd3r1d",
                    "revenue": 555,
                    "currency": "EUR",
                    "payment_method": "credit_card",
                    "tax": 73.76,
                    "shipping": 5.22
                  }
                }
              ]
            }
          ]
        ]
      }
    }
  }
}