Skip to content

Commit

Permalink
updates readme and version
Browse files Browse the repository at this point in the history
  • Loading branch information
mjirv committed Oct 7, 2022
1 parent 0143b68 commit 1db5a66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ _Runs a funnel analysis, i.e. tells you how many users performed step 1 followed
end_date="2019-01-01")
%}
{% set steps = [
{ "event_type": "placed" },
{ "event_type": "completed" },
{ "event_type": "returned" }
]%}
{% set steps = ["placed", "completed", "returned" ] %}
{{ dbt_product_analytics.funnel(steps=steps, event_stream=events) }}
-- or materialize your event stream and use:
Expand Down Expand Up @@ -106,16 +102,16 @@ period unique_users pct_users
30 28 0.451612903225806
60 2 0.032258064516129
```
_Note: `start_date` and `end_date` are not required._
_Note: `end_date` is not required._


##### Advanced:

Three other parameters are available: `periods`, `period_type`, and `dimensions`.
Three other parameters are available: `periods`, `period_type`, and `group_by`.

- **`period`**: The period windows you want look at (defaults to `[1, 7, 14, 30, 60, 120])`
- **`period_type`**: The date type you want to use (defaults to `day`)
- **`dimensions`**: A list of columns from your event stream that you want to group by (defaults to `[]`)
- **`group_by`**: A column from your event stream that you want to group by (defaults to `null`)

### flows() ([source](https://github.com/mjirv/dbt_product_analytics/blob/main/macros/flows.sql))

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: "dbt_product_analytics"
version: "0.1.1"
version: "0.2.0"
config-version: 2

# This setting configures which "profile" dbt uses for this project.
Expand Down

0 comments on commit 1db5a66

Please sign in to comment.