This dbt package unifies and aggregates data from Fivetran's Apple App Store and Google Play connectors into analytics-ready tables.
- Number of materialized models¹: 96
- Connector documentation
- dbt package documentation
- dbt Core™ supported versions
>=1.3.0, <3.0.0
This package enables you to standardize schemas from various app platform connectors and create reporting models for all activity aggregated to the device, country, OS version, app version, and traffic source levels. It creates enriched models with metrics focused on app performance, user engagement, and platform-specific analytics.
Currently supports the following Fivetran app platform connectors:
The individual Google Play and Apple App Store tables have additional platform-specific metrics better suited for deep-dive analyses.
Final output tables are generated in the following target schema:
<your_database>.<connector/schema_name>_app_reporting
By default, this package materializes the following final tables:
| Table | Description |
|---|---|
| app_reporting__app_version_report | Tracks daily app performance metrics by app version to monitor version adoption, identify version-specific issues, and understand how different app versions perform. Example Analytics Questions:
|
| app_reporting__country_report | Analyzes daily app performance by country to understand geographic distribution of users, revenue by region, and identify market-specific opportunities and challenges. Example Analytics Questions:
|
| app_reporting__device_report | Monitors daily app metrics by device type to optimize device-specific experiences, identify device compatibility issues, and understand device preferences among users. Example Analytics Questions:
|
| app_reporting__os_version_report | Tracks daily performance metrics by operating system version to ensure compatibility, prioritize OS version support, and identify version-specific issues. Example Analytics Questions:
|
| app_reporting__overview_report | Provides a high-level daily summary of app performance across all dimensions to monitor overall app health, track key metrics, and identify trends at the app level. Example Analytics Questions:
|
| app_reporting__traffic_source_report | Analyzes daily app metrics by traffic source to measure acquisition channel effectiveness, optimize marketing spend, and understand which sources drive the most valuable users. Example Analytics Questions:
|
¹ Each Quickstart transformation job run materializes these models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as view, table, or incremental.
Each Quickstart transformation job run materializes the following model counts for each selected connector. The total model count represents all staging, intermediate, and final models, materialized as view, table, or incremental:
| Connector | Model Count |
|---|---|
| App Reporting | 18 |
| Apple App Store | 38 |
| Google Play | 40 |
To use this dbt package, you must have the following:
- At least one Fivetran App Reporting connection syncing data into your destination.
- A BigQuery, Snowflake, Redshift, Postgres, or Databricks destination.
You can either add this dbt package in the Fivetran dashboard or import it into your dbt project:
- To add the package in the Fivetran dashboard, follow our Quickstart guide.
- To add the package to your dbt project, follow the setup instructions in the dbt package's README file to use this package.
Include the following github package version in your packages.yml
Check dbt Hub for the latest installation instructions, or read the dbt docs for more information on installing packages.
packages:
- package: fivetran/app_reporting
version: [">=1.3.0", "<1.4.0"] # we recommend using ranges to capture non-breaking changes automaticallyDo NOT include the individual app platform packages in this file. The app reporting package itself has dependencies on these packages and will install them as well.
By default, this package also looks for your connection data in specific schemas (itunes_connect and google_play for Apple App Store and Google Play, respectively). If your data is stored in a different schema, add the relevant <connection>_schema variables to your dbt_project.yml file (see below).
vars:
apple_store_schema: itunes_connect
apple_store_database: your_database_name
google_play_schema: google_play
google_play_database: your_database_name If you have multiple app platform connections of the same type in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. For each source table, the package will union all of the data together and pass the unioned table into the transformations. The source_relation column in each model indicates the origin of each record.
To use this functionality, you will need to set the below variables in your root dbt_project.yml file:
# dbt_project.yml
vars:
apple_store_sources:
- database: connection_1_destination_name # Required
schema: connection_1_schema_name # Required
name: connection_1_source_name # Required only if following the step in the following subsection
- database: connection_2_destination_name
schema: connection_2_schema_name
name: connection_2_source_name
google_play_sources:
- database: connection_1_destination_name # Required
schema: connection_1_schema_name # Required
name: connection_1_source_name # Required only if following the step in the following subsection
- database: connection_2_destination_name
schema: connection_2_schema_name
name: connection_2_source_namePrevious versions of this package employed two separate, mutually exclusive variables for unioning for each platform: (eg.
apple_store_union_schemasandapple_store_union_databases). While these variables are still supported, the new approach shared above are the recommended variables to configure.
If you use Fivetran Transformations for dbt Core™ and are unioning multiple App Platform connections of the same type, you can define your sources in a property .yml file. Set the variable has_defined_sources: true in your dbt_project.yml. Otherwise, your connections won't appear in your DAG. See the union_connections macro documentation for full configuration details.
Your app platform connections might not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that functionality in your respective app platforms or have actively excluded some tables from your syncs.
If you use subscriptions and have the follow tables enabled for:
- Apple App Store
sales_subscription_event_summarysales_subscription_summary
- Google Play
financial_stats_subscriptions_countryearnings
Add the following variables to your dbt_project.yml file
vars:
apple_store__using_subscriptions: true # by default this is assumed to be false
google_play__using_subscriptions: true # by default this is assumed to be false
google_play__using_earnings: true # by default this is assumed to be falseSubscriptions and financial data are NOT included in
app_reportingdata models. This data is leveraged in the individual Google Play and Apple App Store packages, which are installed within the App Reporting package.
In order to map longform territory names to their ISO country codes, we have adapted the CSV from lukes/ISO-3166-Countries-with-Regional-Codes to align Google and Apple's country name formats for the App Reporting package.
You will need to dbt seed the google_play__country_codes file and apple_store_country_codes file just once.
By default this package will build all models in your <target_schema> with the respective package suffixes (see below). This behavior can be tailored to your preference by making use of custom schemas. If you would like to override the current naming conventions, please add the following configuration to your dbt_project.yml file and rename +schema configs:
models:
app_reporting:
+schema: app_reporting # default schema suffix
apple_store:
+schema: apple_store # default schema suffix
staging:
+schema: apple_store_source # default schema suffix
google_play:
+schema: google_play # default schema suffix
staging:
+schema: google_play_source # default schema suffixProvide a blank
+schema:to write to thetarget_schemawithout any suffix.
Expand/collapse configurations
If an individual source table has a different name than the package expects, add the table name as it appears in your destination to the respective variable. This is not available when running the package on multiple unioned connections.
IMPORTANT: See the Apple Store
dbt_project.ymland Google Playdbt_project.ymlvariable declarations to see the expected names.
vars:
apple_store_<default_source_table_name>_identifier: your_table_name
google_play_<default_source_table_name>_identifier: your_table_name By default, the package applies case-insensitive comparisons when resolving source_relation values. If your destination is case-sensitive and you want downstream transformations to respect the exact casing of your source database and schema names, set the following variable:
vars:
fivetran_using_source_casing: trueExpand to view details
Fivetran offers the ability for you to orchestrate your dbt project through Fivetran Transformations for dbt Core™. Learn how to set up your project for orchestration through Fivetran in our Transformations for dbt Core™ setup guides.
This dbt package is dependent on the following dbt packages. For more information on the below packages, refer to the dbt hub site.
If you have any of these dependent packages in your own
packages.ymlwe highly recommend you remove them to ensure there are no package version conflicts.
packages:
- package: fivetran/google_play
version: [">=1.3.0", "<1.4.0"]
- package: fivetran/apple_store
version: [">=1.3.0", "<1.4.0"]
- package: fivetran/fivetran_utils
version: [">=0.4.0", "<0.5.0"]
- package: dbt-labs/dbt_utils
version: [">=1.0.0", "<2.0.0"]
- package: dbt-labs/spark_utils
version: [">=0.3.0", "<0.4.0"]The Fivetran team maintaining this package only maintains the latest version of the package. We highly recommend you stay consistent with the latest version of the package and refer to the CHANGELOG and release notes for more information on changes across versions.
A small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions.
We highly encourage and welcome contributions to this package. Learn how to contribute to a package in dbt's Contributing to an external dbt package article.
In creating this package, which is meant for a wide range of use cases, we had to take opinionated stances on a few different questions we came across during development. We've consolidated significant choices we made in the DECISIONLOG.md, and will continue to update as the package evolves. We are always open to and encourage feedback on these choices, and the package in general.
- If you encounter any questions or want to reach out for help, see the GitHub Issue section to find the right avenue of support for you.
- If you would like to provide feedback to the dbt package team at Fivetran, or would like to request a future dbt package to be developed, then feel free to fill out our Feedback Form.