Skip to content

Commit

Permalink
Merge pull request #26 from OpenSourcePolitics/add_meyzieu_models
Browse files Browse the repository at this point in the history
adding specific stg matomo referrers model
  • Loading branch information
Fujistone authored Oct 21, 2024
2 parents 2dcc9ee + 0748c46 commit 94dbfdc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/meyzieu/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ clean-targets: # directories to be removed by `dbt clean`
# directory as views. These settings can be overridden in the individual model
# files using the `{{ config(...) }}` macro.
models:
demo:
staging:
matomo:
stg_matomo_referrers:
+enabled: false
meyzieu:
# Config indicated by + and applies to all files under models/example/
example:
Expand Down
11 changes: 11 additions & 0 deletions projects/meyzieu/models/staging/matomo/stg_matomo_referrers.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SELECT
label,
nb_uniq_visitors,
nb_visits,
nb_actions,
sum_visit_length,
bounce_count,
label as sub_type,
date
FROM {{ source('matomo', 'referrers') }}
WHERE label IS NOT NULL

0 comments on commit 94dbfdc

Please sign in to comment.