Skip to content

Commit

Permalink
Merge pull request #20 from OpenSourcePolitics/add_hourly_visits_lyon
Browse files Browse the repository at this point in the history
feat(lyon): add hourly visits
  • Loading branch information
JeanLouisLamezec authored Oct 7, 2024
2 parents 86fb9ce + dbe87cc commit 51824da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion projects/lyon/models/staging/matomo/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sources:
database: "{{ env_var('DBNAME') }}"
schema: matomo
tables:
- name : downloads
- name : downloads
- name : hourly_visits
14 changes: 14 additions & 0 deletions projects/lyon/models/staging/matomo/stg_matomo_hourly_visits.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SELECT
label,
nb_uniq_visitors,
nb_visits,
nb_actions,
nb_users,
max_actions,
sum_visit_length,
bounce_count,
nb_visits_converted,
VisitTime_LocalTime,
segment,
date
FROM {{ source('matomo', 'hourly_visits') }}
1 change: 0 additions & 1 deletion projects/lyon/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ lyon:
user: "{{ env_var('USER_PREPROD') }}"
threads: 2
type: postgres
job_execution_timeout_seconds: 600
prod:
dbname: "{{ env_var('DBNAME') }}"
host: "{{ env_var('HOST') }}"
Expand Down

0 comments on commit 51824da

Please sign in to comment.