-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix: restore create_custom_event macro (#179)
* updating local main branch from remote * updating local main branch from remote * restore create_custom_event macro * Restoring Readme updates * Update dbt_project.yml --------- Co-authored-by: Adam Ribaudo <[email protected]>
- Loading branch information
1 parent
a0df48b
commit 14bc5bc
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{%- macro create_custom_event(event_name) -%} | ||
{{ return(adapter.dispatch('create_custom_event', 'ga4')(event_name)) }} | ||
{%- endmacro -%} | ||
|
||
{%- macro default__create_custom_event(event_name) -%} | ||
select * | ||
{% if var("default_custom_parameters", "none") != "none" %} | ||
{{ ga4.stage_custom_parameters( var("default_custom_parameters", "none") )}} | ||
{% endif %} | ||
{% if var(event_name+"_custom_parameters", "none") != "none" %} | ||
{{ ga4.stage_custom_parameters( var(event_name+"_custom_parameters") )}} | ||
{% endif %} | ||
from {{ref('stg_ga4__events')}} | ||
where event_name = '{{event_name}}' | ||
{%- endmacro -%} |