# Configure the Fractribution data model
> Configure the legacy Fractribution dbt package for marketing attribution analysis. Superseded by the Attribution package.
> Source: https://docs.snowplow.io/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-configuration/legacy/fractribution/
> Documentation index: https://docs.snowplow.io/llms.txt

> **Note:** The Fractribution Package is no longer maintained, please refer to the [Attribution package](/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-models/dbt-attribution-data-model/) for marketing attribution analysis with Snowplow

This page helps you configure the Snowplow Fractribution dbt package. You can customize variables, generate configuration code, and set output schemas.

## Package configuration variables (v0.3.6)

This package utilizes a set of variables that are configured to recommended values for optimal performance of the models. Depending on your use case, you might want to override these values by adding to your `dbt_project.yml` file.

> **Note: Variable name prefix**
>
> All variables in Snowplow packages start with `snowplow__` but we have removed these in the below tables for brevity.

### Warehouse and tracker

| Variable | Description | Default |
| --- | --- | --- |
| `web_user_mapping_table` | The schema and table name of the snowplow web user mapping table, if different to default. | `derived.snowplow_web_user_mapping` |
| `conversions_source` | The source (schema and table) of your conversion events,  likely the conversions table generated by the Unified package. | `{{ source('atomic', 'events') }}` |
| `page_views_source` | The source (schema and table) of the derived `snowplow_web_page_views` table. | `{{ source('derived', 'snowplow_web_page_views') }}` |

### Operation and logic

| Variable | Description | Default |
| --- | --- | --- |
| `path_lookback_days` | Restricts the model to marketing channels within this many days of the conversion (values of 30, 14 or 7 are recommended). | `30` |
| `path_lookback_steps` | The limit for the number of marketing channels to look at before the conversion. | `0 (unlimited)` |
| `conversion_window_days` | The last complete nth number of days (calculated from the last processed pageview within page_views_source) to dynamically update the conversion_window_start_date and end_date with. Will only apply if both variables are left as an empty string. | `30` |
| `conversion_window_end_date` | The end date in UTC for the window of conversions to include. | `""` |
| `conversion_window_start_date` | The start date in UTC for the window of conversions to include. | `current_date()-31` |
| `conversions_source_filter` | A timestamp field the conversion source field is partitioned on (ideally) for optimized filtering, when left blank `derived_tstamp` is used. | `blank` |
| `conversions_source_filter_buffer_days` | The number of days to extend the filter. | `1` |
| `use_snowplow_web_user_mapping_table` | `true` if you are using the Snowplow web model for web user mappings (`domain_userid` => `user_id`) | `false` |

### Entities (contexts), filters, and logs

| Variable | Description | Default |
| --- | --- | --- |
| `channels_to_exclude` | List of channels to exclude from analysis (empty to keep all channels). For example, users may want to exclude the `Direct` channel from the analysis. | `[ ] (no filter applied)` |
| `channels_to_include` | List of channels to include in the analysis (empty to keep all channels). For example, users may want to include the `Direct` channel only in the analysis. | `[ ] (no filter applied)` |
| `consider_intrasession_channels` | If `false`, only considers the channel at the start of the session (i.e. first page view). If `true`, considers multiple channels in the conversion session as well as historically. | `false` |
| `conversion_hosts` | `url_hosts` to filter to in the data processing | `[] (no filter applied)` |
| `path_transforms` | Dictionary of path transforms (and their argument, `null` if none) to perform on the full conversion path (see [udfs.sql file](https://github.com/snowplow/dbt-snowplow-fractribution/blob/main/macros/path_transformations/create_udfs.sql)). | `{'exposure_path': null}` |

### Warehouse-specific

| Variable | Description | Default | Warehouse |
| --- | --- | --- | --- |
| `run_python_script_in_snowpark` | A flag for if you wish to run the python scripts using Snowpark. | `false` | Snowflake |
| `attribution_model_for_snowpark` | The attribution model to use when running in Snowpark; one of `shapley`, `first_touch`, `last_touch`, `position_based`, `linear`. See the [package docs](/docs/modeling-your-data/modeling-your-data-with-dbt/dbt-models/dbt-fractribution-data-model/#attribution-models) for more information. | `shapley` | Snowflake |

