Skip to main content

Fractribution

Package Configuration Variables

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

All variables in Snowplow packages start with snowplow__ but we have removed these in the below table for brevity.

Warehouse and tracker

Variable NameDescriptionDefault
page_views_sourceThe source (schema and table) of the derived snowplow_web_page_views table{{ source('derived', 'snowplow_web_page_views') }}
web_user_mapping_tableThe schema and table name of the snowplow web user mapping table, if different to defaultderived.snowplow_web_user_mapping
conversions_sourceThe source (schema and table) of your conversion events, likely your atomic events table{{ source('atomic', 'events') }}

Operation and logic

Variable NameDescriptionDefault
conversion_window_start_dateThe start date in UTC for the window of conversions to include
conversion_window_end_dateThe end date in UTC for the window of conversions to includecurrent_date()-1
path_lookback_daysRestricts the model to marketing channels within this many days of the conversion (values of 30, 14 or 7 are recommended)30
path_lookback_stepsThe limit for the number of marketing channels to look at before the conversion0 (unlimited)
path_transformsDictionary of path transforms (and their argument, null if none) to perform on the full conversion path (see udfs.sql file){'exposure_path': null}
use_snowplow_web_user_mapping_tabletrue if you are using the Snowplow web model for web user mappings (domain_userid => user_id)false

Contexts, filters, and logs

Variable NameDescriptionDefault
channels_to_excludeList of channels to exclude from analysis (empty to keep all channels). For example, users may want to exclude the 'Direct' channel from the analysis.[]
conversion_hostsurl_hosts to filter to in the data processing[a.com]
consider_intrasession_channelsIf 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

Output Schemas

By default all scratch/staging tables will be created in the <target.schema>_scratch schema, the derived tables, will be created in <target.schema>_derived and all manifest tables in <target.schema>_snowplow_manifest. Some of these schemas are only used by specific packages, ensure you add the correct configurations for each packages you are using. To change, please add the following to your dbt_project.yml file:

tip

If you want to use just your connection schema with no suffixes, set the +schema: values to null

# dbt_project.yml
...
models:
snowplow_fractribution:
+schema: my_derived_schema
Was this page helpful?