Skip to content

Commit 21b3a5e

Browse files
committed
added readme sections for new web functions
1 parent 28bdf56 commit 21b3a5e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,23 @@ Usage:
354354
```
355355
{{ dbt_utils.get_url_parameter(field='page_url', url_parameter='utm_source') }}
356356
```
357+
358+
#### get_url_host ([source](macros/web/get_url_host.sql))
359+
This macro extracts a hostname from a column containing a url.
360+
361+
Usage:
362+
```
363+
{{ dbt_utils.get_url_host(field='page_url') }}
364+
```
365+
366+
#### get_url_path ([source](macros/web/get_url_path.sql))
367+
This macro extracts a page path from a column containing a url.
368+
369+
Usage:
370+
```
371+
{{ dbt_utils.get_url_host(field='page_url') }}
372+
```
373+
357374
---
358375
### Materializations
359376
#### insert_by_period ([source](macros/materializations/insert_by_period_materialization.sql))

0 commit comments

Comments
 (0)