> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fraudeg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Measure before you integrate

> Compare Fraudeg with your current controls on your own traffic, without blocking anything

Before you put Fraudeg in the path of your payments, you want to know what it would have done with your
traffic: what fraud it would have stopped, which good customers it would have held back, and how it compares with
what you already have. To find out, you **upload** your history, **run** Fraudeg in comparison mode, and
**compare** its results with your own alerts and claims. In comparison mode nothing gets
blocked: your system keeps deciding the way it does today.

**Who it's for:** risk teams evaluating Fraudeg in a pilot, and companies that want
a baseline before changing their controls.

## Signals that matter

In this case you're not looking for one code in particular: you look at all the [public codes](https://docs.fraudeg.com/en/referencia/flags.md)
on your own traffic to see which ones appear and how often. What does determine which
signals can be evaluated is the columns in your file:

| If your history includes… | This category is evaluated | See |
| - | - | - |
| The four required fields: `order_id`, `user_id`, `transaction_amount`, `payment_method` | The basis of every evaluation | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |
| `cvv_result`, `cavv_result`, `avs_result`, `auth_response_code` | `authentication` | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |
| `bin_country_code`, `merchant_country_code`, `country_id` | `geo` | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |
| `device_id`, `device_fingerprint` | `device` | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |
| `ip_address` | `network` | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |
| `card_hash`, `expanded_bin`, `merchant_id`, `channel`, `mcc` | `payment` | [Fields](https://docs.fraudeg.com/en/integrar/campos.md) |

The more columns you map, the more categories get evaluated. The mapping marks each field as
**Critical**, **Value-add**, or **Optional**.

## How Fraudeg solves it

You can stick with history only, or add live traffic via API. Either way, the
results are read in the dashboard; nothing changes in your payment flow.

## Implementation

**1. Upload your transaction history**

In **Files**, click **Upload file** and choose a `.csv`, `.xls`, or `.xlsx`. Assign the
**Payment method** or the **Domain**, and in **Column mapping** confirm which column is
each field. See [Transaction files](https://docs.fraudeg.com/en/manual/archivos-de-transacciones.md).

**2. Upload your alerts and your claims**

In [Event files](https://docs.fraudeg.com/en/manual/archivos-de-eventos.md), upload the alerts your
current system generated (**Fraud alerts**) and your customers' claims (**Customer
claims**). Review the column assignment and click **Confirm and record**. Without the
alerts file, no comparison is possible.

**3. Connect live traffic in comparison mode (optional)**

In **Config › Operation**, leave the **Operating mode** at **In comparison** (button
**Switch to comparison mode**).
Send your transactions to [`POST /analyze`](https://docs.fraudeg.com/en/integrar/primera-transaccion) as you would in production;
Fraudeg decides and records it, but your system doesn't act on that decision. See
[Company and operation](https://docs.fraudeg.com/en/manual/empresa-y-operacion.md).

**4. Read the results**

In **Dashboards › Fraud analysis** you see how effective your current alerting system is,
the precision per rule, and the patterns detected. In [Alerts](https://docs.fraudeg.com/en/manual/alertas.md), the
**Comparison** tab puts what Fraudeg alerted on side by side with what your system alerted on.

**5. Test adjustments without risk**

Before going to production, try [custom rules](https://docs.fraudeg.com/en/manual/reglas-personalizadas.md)
in **shadow mode** and [band sets](https://docs.fraudeg.com/en/manual/umbrales.md) with **Test without acting**. That way you see
their effect on your traffic without them deciding.

> [!NOTE]
>
> In comparison mode no cases are opened and there are no case queues or schedules. Switching back to operating
> mode is done by Fraudeg at your request.

## What to measure

| Metric | Where you see it |
| - | - |
| **Authorization rate** versus your current controls | **Dashboards › Business analysis** ([Dashboards](https://docs.fraudeg.com/en/manual/dashboards.md)) |
| **Fraud contained** | **Dashboards › Business analysis** |
| **Model effectiveness**: detection rates, **Results matrix**, precision per rule | **Dashboards › Fraud analysis** |
| **Fraud-linked rejections** | **Dashboards › Fraud analysis** |
| Who alerted on what: precision, fraud coverage, and false alarms | [Alerts](https://docs.fraudeg.com/en/manual/alertas.md), **Comparison** tab |

## Go-live checklist

* [ ] Your history covers all the **Critical** fields in the mapping.
* [ ] You uploaded the **Fraud alerts** file from your current system and the **Customer claims** file.
* [ ] You reviewed the **Comparison** tab with your risk team.
* [ ] Your custom rules and bands went through **shadow mode** or **Test without acting**.
* [ ] Your integration branches on `decision.type` (see [Decisions](https://docs.fraudeg.com/en/conceptos/decisiones.md)).
* [ ] You reviewed [Going to production](https://docs.fraudeg.com/en/integrar/produccion.md) and asked Fraudeg to switch you to operating mode.

## Next steps

> [card] [Transaction files](https://docs.fraudeg.com/en/manual/archivos-de-transacciones.md)
>
> Upload and map your history.

> [card] [Event files](https://docs.fraudeg.com/en/manual/archivos-de-eventos.md)
>
> Alerts, claims, and card status.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.