Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: DNM: MPP-3983: add Relay integration metrics outcome #712

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions jetstream/outcomes/firefox_desktop/relay.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
friendly_name = "Relay"
description = "Metrics for the Relay integration"


# Metric for tracking how many times the offer was shown
[metrics.relay_integration_clients_shown_relay_offer]
data_source = "events"
select_expression = "COUNT(DISTINCT client_id)"
from_expression = "WHERE event_category = 'relay_integration' AND event_object = 'offer_relay' AND event_method = 'shown'"
name = "relay_integration.clients_shown_relay_offer"
friendly_name = "Relay offer shown to client"
description = "Tracks how many times the Relay offer is shown to a client"
type = "scalar"
[metrics.relay_integration_clients_shown_relay_offer.statistics.sum]

# Metric for tracking how many times the offer was clicked
[metrics.relay_integration_clients_clicked_relay_offer]
data_source = "events"
select_expression = "COUNT(DISTINCT client_id)"
from_expression = "WHERE event_category = 'relay_integration' AND event_object = 'offer_relay' AND event_method = 'clicked'"
name = "relay_integration.clients_clicked_relay_offer"
friendly_name = "Relay offer clicked by client"
description = "Tracks how many times the Relay offer is clicked by a client"
type = "scalar"
[metrics.relay_integration_clients_clicked_relay_offer.statistics.sum]

# Calculating the Relay Offer Click-Through Rate (CTR) percentage
[metrics.relay_integration_relay_offer_ctr]
data_source = "events"
name = "relay_integration.relay_offer_ctr"
type = "derived"
description = "Calculated Click-Through Rate (CTR) for Relay offer"
formula = "relay_integration.clients_clicked_relay_offer / relay_integration.clients_shown_offer_relay * 100"
[metrics.relay_integration_relay_offer_ctr.statistics.sum]
Loading