Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion models/staging/stg_ga4__events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ models:
Surrogate key for events. Potential for uniqueness test to fail if client_key or session_id is null
and uniqueness depends on differentiation by that value.
tests:
- unique
- unique:
config:
where: event_date_dt > date_sub(current_date(), interval 7 day)
- name: page_path
description: This field contains the page_location with the query string portion removed. Uses macro remove_query_string
- name: page_engagement_key
Expand Down