Skip to content

Commit

Permalink
Merge pull request #110 from fishtown-analytics/feature/web-function-…
Browse files Browse the repository at this point in the history
…readme-section

added readme sections for new web functions
  • Loading branch information
jthandy authored Jan 4, 2019
2 parents 28bdf56 + 21b3a5e commit 3a3a397
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,23 @@ Usage:
```
{{ dbt_utils.get_url_parameter(field='page_url', url_parameter='utm_source') }}
```

#### get_url_host ([source](macros/web/get_url_host.sql))
This macro extracts a hostname from a column containing a url.

Usage:
```
{{ dbt_utils.get_url_host(field='page_url') }}
```

#### get_url_path ([source](macros/web/get_url_path.sql))
This macro extracts a page path from a column containing a url.

Usage:
```
{{ dbt_utils.get_url_host(field='page_url') }}
```

---
### Materializations
#### insert_by_period ([source](macros/materializations/insert_by_period_materialization.sql))
Expand Down

0 comments on commit 3a3a397

Please sign in to comment.