Skip to content

Commit

Permalink
Add new cube measures: sessions, bounces, bounce rate
Browse files Browse the repository at this point in the history
  • Loading branch information
kzzzr committed Oct 12, 2023
1 parent dec17e2 commit d974ad6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions schema/f_tracker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ cubes:
- name: CPC
sql: '{CUBE.costs} / nullif(coalesce({CUBE.clicks}, 1), 0)'
type: number
- name: bounces
description: '# Bounces'
sql: bounces
type: sum
- name: sessions
description: '# Sessions'
sql: sessions
type: sum
- name: bounce_rate
description: '% Bounce Rate'
sql: '{CUBE.bounces} / nullif(coalesce({CUBE.sessions}, 1), 0)'
type: number
dimensions:
- name: date
sql: 'dt'
Expand Down

0 comments on commit d974ad6

Please sign in to comment.