# Candidate Source Tracking

When a candidate clicks Apply on a job board and lands on your career site, it helps to know which board they came from. eQuest can add that to the apply URL for you, so you can track which boards bring in candidates.

## How it works

Put a placeholder in `candidate_response.url` when you create the draft. eQuest gives each board its own copy of the URL, with the placeholder replaced by that board's ID.

```text
"candidate_response": {
  "url": "https://careers.example.com/apply?job=20418&source={pipeline_id}",
  "email": "apply@example.com"
}
```

A job posted to CareerBuilder and Dice would then send candidates to:

```text
https://careers.example.com/apply?job=20418&source=CareerBuilder
https://careers.example.com/apply?job=20418&source=Dice
```

The parameter name (`source` here) can be anything your system expects. Only the placeholder in curly braces gets replaced.

## Board or board instance?

There are two placeholders, depending on how detailed you want the tracking to be.

| Placeholder | Replaced with | Use it to answer |
| --- | --- | --- |
| `{pipeline_id}` | eQuest's permanent ID for the job board, like `CareerBuilder`. The same for every customer, and it never changes. | "Which job board did this candidate come from?" |
| `{board_instance_id}` | The customer's own setup of that board. This is the `id` from `GET /boards`. | "Which of our accounts on that board did this candidate come from?" |

### Why there are two

A customer can set up the same job board more than once. For example, they might have one CareerBuilder account for the Americas and another for Europe, each with its own login, inventory, and branding. Each one is a separate **board instance** with its own `id`, but both have the same `pipeline_id`, `CareerBuilder`.

| Board | `id` (instance) | `pipeline_id` |
| --- | --- | --- |
| CareerBuilder Americas | `1922` | `CareerBuilder` |
| CareerBuilder Europe | `1987` | `CareerBuilder` |
| Dice | `2698` | `Dice` |

Use `{pipeline_id}` to roll results up by job board. Use `{board_instance_id}` when the customer wants results split by account.

## Where to find the IDs

`GET /boards` returns both for every board on the account: `id` is the board instance and `pipeline_id` is the job board. Save them so you can turn the IDs in your apply traffic back into board names.
