Configure the Mobile data model
This package has been superseded by the Unified Digital that combines data from both web and mobile sources. For more information, see the Unified Digital page.
This page helps you configure the Snowplow Mobile dbt package. You can customize variables, generate configuration code, and set output schemas.
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.
All variables in Snowplow packages start with snowplow__ but we have removed these in the below tables for brevity.
Warehouse and tracker#
Operation and logic#
Entities (contexts), filters, and logs#
Warehouse-specific#
Config generator#
You can use the below inputs to generate the code that you need to place into your dbt_project.yml file to configure the package as you require. Any values not specified will use their default values from the package.
Warehouse and tracker
Operation and logic
Entities (contexts), filters, and logs
Warehouse-specific
Project Variables:
vars:
snowplow_mobile: null
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:
If you want to use just your connection schema with no suffixes, set the +schema: values to null
models:
snowplow_mobile:
base:
manifest:
+schema: my_manifest_schema
scratch:
+schema: my_scratch_schema
optional_modules:
app_errors:
+schema: my_derived_schema
scratch:
+schema: my_scratch_schema
screen_views:
+schema: my_derived_schema
scratch:
+schema: my_scratch_schema
sessions:
+schema: my_derived_schema
scratch:
+schema: my_scratch_schema
user_mapping:
+schema: my_derived_schema
users:
+schema: my_derived_schema
scratch:
+schema: my_scratch_schema