Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8a5f2f5
Commit
b8a5f2f5
authored
May 17, 2021
by
Nicolas Dular
Committed by
Imre Farkas
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send email campaign usage data
parent
ed687eb3
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
906 additions
and
1 deletion
+906
-1
changelogs/unreleased/nicolasdular-email-campaign-usage-data.yml
...ogs/unreleased/nicolasdular-email-campaign-usage-data.yml
+5
-0
config/metrics/counts_all/20210510201537_in_product_marketing_email_create_0_sent.yml
...210510201537_in_product_marketing_email_create_0_sent.yml
+21
-0
config/metrics/counts_all/20210510201919_in_product_marketing_email_create_0_cta_clicked.yml
...01919_in_product_marketing_email_create_0_cta_clicked.yml
+22
-0
config/metrics/counts_all/20210510202148_in_product_marketing_email_create_1_sent.yml
...210510202148_in_product_marketing_email_create_1_sent.yml
+21
-0
config/metrics/counts_all/20210510202356_in_product_marketing_email_create_1_cta_clicked.yml
...02356_in_product_marketing_email_create_1_cta_clicked.yml
+22
-0
config/metrics/counts_all/20210510202604_in_product_marketing_email_create_2_sent.yml
...210510202604_in_product_marketing_email_create_2_sent.yml
+21
-0
config/metrics/counts_all/20210510202724_in_product_marketing_email_create_2_cta_clicked.yml
...02724_in_product_marketing_email_create_2_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510202807_in_product_marketing_email_verify_0_sent.yml
...210510202807_in_product_marketing_email_verify_0_sent.yml
+21
-0
config/metrics/counts_all/20210510202943_in_product_marketing_email_verify_0_cta_clicked.yml
...02943_in_product_marketing_email_verify_0_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510202955_in_product_marketing_email_verify_1_sent.yml
...210510202955_in_product_marketing_email_verify_1_sent.yml
+21
-0
config/metrics/counts_all/20210510203005_in_product_marketing_email_verify_1_cta_clicked.yml
...03005_in_product_marketing_email_verify_1_cta_clicked.yml
+22
-0
config/metrics/counts_all/20210510203015_in_product_marketing_email_verify_2_sent.yml
...210510203015_in_product_marketing_email_verify_2_sent.yml
+21
-0
config/metrics/counts_all/20210510203025_in_product_marketing_email_verify_2_cta_clicked.yml
...03025_in_product_marketing_email_verify_2_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510203035_in_product_marketing_email_trial_0_sent.yml
...0210510203035_in_product_marketing_email_trial_0_sent.yml
+21
-0
config/metrics/counts_all/20210510203044_in_product_marketing_email_trial_0_cta_clicked.yml
...203044_in_product_marketing_email_trial_0_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510203054_in_product_marketing_email_trial_1_sent.yml
...0210510203054_in_product_marketing_email_trial_1_sent.yml
+21
-0
config/metrics/counts_all/20210510203104_in_product_marketing_email_trial_1_cta_clicked.yml
...203104_in_product_marketing_email_trial_1_cta_clicked.yml
+22
-0
config/metrics/counts_all/20210510203114_in_product_marketing_email_trial_2_sent.yml
...0210510203114_in_product_marketing_email_trial_2_sent.yml
+21
-0
config/metrics/counts_all/20210510203124_in_product_marketing_email_trial_2_cta_clicked.yml
...203124_in_product_marketing_email_trial_2_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510203134_in_product_marketing_email_team_0_sent.yml
...20210510203134_in_product_marketing_email_team_0_sent.yml
+21
-0
config/metrics/counts_all/20210510203143_in_product_marketing_email_team_0_cta_clicked.yml
...0203143_in_product_marketing_email_team_0_cta_clicked.yml
+21
-0
config/metrics/counts_all/20210510203153_in_product_marketing_email_team_1_sent.yml
...20210510203153_in_product_marketing_email_team_1_sent.yml
+21
-0
config/metrics/counts_all/20210510203203_in_product_marketing_email_team_1_cta_clicked.yml
...0203203_in_product_marketing_email_team_1_cta_clicked.yml
+22
-0
config/metrics/counts_all/20210510203213_in_product_marketing_email_team_2_sent.yml
...20210510203213_in_product_marketing_email_team_2_sent.yml
+21
-0
config/metrics/counts_all/20210510203223_in_product_marketing_email_team_2_cta_clicked.yml
...0203223_in_product_marketing_email_team_2_cta_clicked.yml
+21
-0
doc/development/usage_ping/dictionary.md
doc/development/usage_ping/dictionary.md
+288
-0
lib/gitlab/usage_data.rb
lib/gitlab/usage_data.rb
+24
-1
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+80
-0
No files found.
changelogs/unreleased/nicolasdular-email-campaign-usage-data.yml
0 → 100644
View file @
b8a5f2f5
---
title
:
Send in-product marketing email usage data
merge_request
:
56752
author
:
type
:
changed
config/metrics/counts_all/20210510201537_in_product_marketing_email_create_0_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_0_sent
name
:
"
count_sent_first_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total sent emails of the create track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510201919_in_product_marketing_email_create_0_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_0_cta_clicked
name
:
"
count_clicks_on_the_first_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total clicks on the create track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202148_in_product_marketing_email_create_1_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_1_sent
name
:
"
count_sent_second_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total sent emails of the create track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202356_in_product_marketing_email_create_1_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_1_cta_clicked
name
:
"
count_clicks_on_the_second_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total clicks on the create track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202604_in_product_marketing_email_create_2_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_2_sent
name
:
"
count_sent_third_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total sent emails of the create track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202724_in_product_marketing_email_create_2_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_create_2_cta_clicked
name
:
"
count_clicks_on_the_third_email_of_the_create_track_for_in_product_marketing_emails"
description
:
Total clicks on the create track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202807_in_product_marketing_email_verify_0_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_0_sent
name
:
"
count_sent_first_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total sent emails of the verify track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202943_in_product_marketing_email_verify_0_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_0_cta_clicked
name
:
"
count_clicks_on_the_first_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total clicks on the verify track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510202955_in_product_marketing_email_verify_1_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_1_sent
name
:
"
count_sent_second_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total sent emails of the verify track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203005_in_product_marketing_email_verify_1_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_1_cta_clicked
name
:
"
count_clicks_on_the_second_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total clicks on the verify track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203015_in_product_marketing_email_verify_2_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_2_sent
name
:
"
count_sent_third_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total sent emails of the verify track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203025_in_product_marketing_email_verify_2_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_verify_2_cta_clicked
name
:
"
count_clicks_on_the_third_email_of_the_verify_track_for_in_product_marketing_emails"
description
:
Total clicks on the verify track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203035_in_product_marketing_email_trial_0_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_0_sent
name
:
"
count_sent_first_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total sent emails of the trial track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203044_in_product_marketing_email_trial_0_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_0_cta_clicked
name
:
"
count_clicks_on_the_first_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total clicks on the verify trial's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203054_in_product_marketing_email_trial_1_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_1_sent
name
:
"
count_sent_second_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total sent emails of the trial track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203104_in_product_marketing_email_trial_1_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_1_cta_clicked
name
:
"
count_clicks_on_the_second_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total clicks on the trial track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203114_in_product_marketing_email_trial_2_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_2_sent
name
:
"
count_sent_third_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total sent emails of the trial track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203124_in_product_marketing_email_trial_2_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_trial_2_cta_clicked
name
:
"
count_clicks_on_the_third_email_of_the_trial_track_for_in_product_marketing_emails"
description
:
Total clicks on the trial track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203134_in_product_marketing_email_team_0_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_0_sent
name
:
"
count_sent_first_email_of_the_trial_team_for_in_product_marketing_emails"
description
:
Total sent emails of the team track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203143_in_product_marketing_email_team_0_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_0_cta_clicked
name
:
"
count_clicks_on_the_first_email_of_the_team_track_for_in_product_marketing_emails"
description
:
Total clicks on the team track's first email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203153_in_product_marketing_email_team_1_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_1_sent
name
:
"
count_sent_second_email_of_the_team_track_for_in_product_marketing_emails"
description
:
Total sent emails of the team track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203203_in_product_marketing_email_team_1_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_1_cta_clicked
name
:
"
count_clicks_on_the_second_email_of_the_team_track_for_in_product_marketing_emails"
description
:
Total clicks on the team track's second email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203213_in_product_marketing_email_team_2_sent.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_2_sent
name
:
"
count_sent_third_email_of_the_team_track_for_in_product_marketing_emails"
description
:
Total sent emails of the team track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
config/metrics/counts_all/20210510203223_in_product_marketing_email_team_2_cta_clicked.yml
0 → 100644
View file @
b8a5f2f5
---
key_path
:
counts.in_product_marketing_email_team_2_cta_clicked
name
:
"
count_clicks_on_the_third_email_of_the_team_track_for_in_product_marketing_emails"
description
:
Total clicks on the team track's third email
product_section
:
product_stage
:
growth
product_group
:
group::activation
product_category
:
onboarding
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56752
time_frame
:
all
data_source
:
database
distribution
:
-
ce
-
ee
tier
:
-
free
-
premium
-
ultimate
doc/development/usage_ping/dictionary.md
View file @
b8a5f2f5
...
...
@@ -2134,6 +2134,294 @@ Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_0_cta_clicked`
Total clicks on the create track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510201919_in_product_marketing_email_create_0_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_0_sent`
Total sent emails of the create track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510201537_in_product_marketing_email_create_0_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_1_cta_clicked`
Total clicks on the create track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202356_in_product_marketing_email_create_1_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_1_sent`
Total sent emails of the create track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202148_in_product_marketing_email_create_1_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_2_cta_clicked`
Total clicks on the create track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202724_in_product_marketing_email_create_2_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_create_2_sent`
Total sent emails of the create track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202604_in_product_marketing_email_create_2_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_0_cta_clicked`
Total clicks on the team track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203143_in_product_marketing_email_team_0_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_0_sent`
Total sent emails of the team track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203134_in_product_marketing_email_team_0_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_1_cta_clicked`
Total clicks on the team track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203203_in_product_marketing_email_team_1_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_1_sent`
Total sent emails of the team track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203153_in_product_marketing_email_team_1_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_2_cta_clicked`
Total clicks on the team track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203223_in_product_marketing_email_team_2_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_team_2_sent`
Total sent emails of the team track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203213_in_product_marketing_email_team_2_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_0_cta_clicked`
Total clicks on the verify trial's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203044_in_product_marketing_email_trial_0_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_0_sent`
Total sent emails of the trial track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203035_in_product_marketing_email_trial_0_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_1_cta_clicked`
Total clicks on the trial track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203104_in_product_marketing_email_trial_1_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_1_sent`
Total sent emails of the trial track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203054_in_product_marketing_email_trial_1_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_2_cta_clicked`
Total clicks on the trial track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203124_in_product_marketing_email_trial_2_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_trial_2_sent`
Total sent emails of the trial track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203114_in_product_marketing_email_trial_2_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_0_cta_clicked`
Total clicks on the verify track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202943_in_product_marketing_email_verify_0_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_0_sent`
Total sent emails of the verify track's first email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202807_in_product_marketing_email_verify_0_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_1_cta_clicked`
Total clicks on the verify track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203005_in_product_marketing_email_verify_1_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_1_sent`
Total sent emails of the verify track's second email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510202955_in_product_marketing_email_verify_1_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_2_cta_clicked`
Total clicks on the verify track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203025_in_product_marketing_email_verify_2_cta_clicked.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_product_marketing_email_verify_2_sent`
Total sent emails of the verify track's third email
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210510203015_in_product_marketing_email_verify_2_sent.yml)
Group: `group::activation`
Status: `implemented`
Tiers: `free`, `premium`, `ultimate`
### `counts.in_review_folder`
Missing description
...
...
lib/gitlab/usage_data.rb
View file @
b8a5f2f5
...
...
@@ -190,7 +190,8 @@ module Gitlab
user_preferences_usage
,
ingress_modsecurity_usage
,
container_expiration_policies_usage
,
service_desk_counts
service_desk_counts
,
email_campaign_counts
).
tap
do
|
data
|
data
[
:snippets
]
=
add
(
data
[
:personal_snippets
],
data
[
:project_snippets
])
end
...
...
@@ -845,6 +846,28 @@ module Gitlab
end
# rubocop: enable CodeReuse/ActiveRecord
# rubocop: disable CodeReuse/ActiveRecord
def
email_campaign_counts
# rubocop:disable UsageData/LargeTable
sent_emails
=
count
(
Users
::
InProductMarketingEmail
.
group
(
:track
,
:series
))
clicked_emails
=
count
(
Users
::
InProductMarketingEmail
.
where
.
not
(
cta_clicked_at:
nil
).
group
(
:track
,
:series
))
series_amount
=
Namespaces
::
InProductMarketingEmailsService
::
INTERVAL_DAYS
.
count
Users
::
InProductMarketingEmail
.
tracks
.
keys
.
each_with_object
({})
do
|
track
,
result
|
# rubocop: enable UsageData/LargeTable:
0
.
upto
(
series_amount
-
1
).
map
do
|
series
|
# When there is an error with the query and it's not the Hash we expect, we return what we got from `count`.
sent_count
=
sent_emails
.
is_a?
(
Hash
)
?
sent_emails
.
fetch
([
track
,
series
],
0
)
:
sent_emails
clicked_count
=
clicked_emails
.
is_a?
(
Hash
)
?
clicked_emails
.
fetch
([
track
,
series
],
0
)
:
clicked_emails
result
[
"in_product_marketing_email_
#{
track
}
_
#{
series
}
_sent"
]
=
sent_count
result
[
"in_product_marketing_email_
#{
track
}
_
#{
series
}
_cta_clicked"
]
=
clicked_count
end
end
end
# rubocop: enable CodeReuse/ActiveRecord
def
unique_visit_service
strong_memoize
(
:unique_visit_service
)
do
::
Gitlab
::
Analytics
::
UniqueVisits
.
new
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
b8a5f2f5
...
...
@@ -1466,6 +1466,86 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end
end
describe
'.email_campaign_counts'
do
subject
{
described_class
.
send
(
:email_campaign_counts
)
}
context
'when queries time out'
do
before
do
allow_any_instance_of
(
ActiveRecord
::
Relation
)
.
to
receive
(
:count
).
and_raise
(
ActiveRecord
::
StatementInvalid
.
new
(
''
))
end
it
'returns -1 for email campaign data'
do
expected_data
=
{
"in_product_marketing_email_create_0_sent"
=>
-
1
,
"in_product_marketing_email_create_0_cta_clicked"
=>
-
1
,
"in_product_marketing_email_create_1_sent"
=>
-
1
,
"in_product_marketing_email_create_1_cta_clicked"
=>
-
1
,
"in_product_marketing_email_create_2_sent"
=>
-
1
,
"in_product_marketing_email_create_2_cta_clicked"
=>
-
1
,
"in_product_marketing_email_verify_0_sent"
=>
-
1
,
"in_product_marketing_email_verify_0_cta_clicked"
=>
-
1
,
"in_product_marketing_email_verify_1_sent"
=>
-
1
,
"in_product_marketing_email_verify_1_cta_clicked"
=>
-
1
,
"in_product_marketing_email_verify_2_sent"
=>
-
1
,
"in_product_marketing_email_verify_2_cta_clicked"
=>
-
1
,
"in_product_marketing_email_trial_0_sent"
=>
-
1
,
"in_product_marketing_email_trial_0_cta_clicked"
=>
-
1
,
"in_product_marketing_email_trial_1_sent"
=>
-
1
,
"in_product_marketing_email_trial_1_cta_clicked"
=>
-
1
,
"in_product_marketing_email_trial_2_sent"
=>
-
1
,
"in_product_marketing_email_trial_2_cta_clicked"
=>
-
1
,
"in_product_marketing_email_team_0_sent"
=>
-
1
,
"in_product_marketing_email_team_0_cta_clicked"
=>
-
1
,
"in_product_marketing_email_team_1_sent"
=>
-
1
,
"in_product_marketing_email_team_1_cta_clicked"
=>
-
1
,
"in_product_marketing_email_team_2_sent"
=>
-
1
,
"in_product_marketing_email_team_2_cta_clicked"
=>
-
1
}
expect
(
subject
).
to
eq
(
expected_data
)
end
end
context
'when there are entries'
do
before
do
create
(
:in_product_marketing_email
,
track: :create
,
series:
0
,
cta_clicked_at:
Time
.
zone
.
now
)
create
(
:in_product_marketing_email
,
track: :verify
,
series:
0
)
end
it
'gathers email campaign data'
do
expected_data
=
{
"in_product_marketing_email_create_0_sent"
=>
1
,
"in_product_marketing_email_create_0_cta_clicked"
=>
1
,
"in_product_marketing_email_create_1_sent"
=>
0
,
"in_product_marketing_email_create_1_cta_clicked"
=>
0
,
"in_product_marketing_email_create_2_sent"
=>
0
,
"in_product_marketing_email_create_2_cta_clicked"
=>
0
,
"in_product_marketing_email_verify_0_sent"
=>
1
,
"in_product_marketing_email_verify_0_cta_clicked"
=>
0
,
"in_product_marketing_email_verify_1_sent"
=>
0
,
"in_product_marketing_email_verify_1_cta_clicked"
=>
0
,
"in_product_marketing_email_verify_2_sent"
=>
0
,
"in_product_marketing_email_verify_2_cta_clicked"
=>
0
,
"in_product_marketing_email_trial_0_sent"
=>
0
,
"in_product_marketing_email_trial_0_cta_clicked"
=>
0
,
"in_product_marketing_email_trial_1_sent"
=>
0
,
"in_product_marketing_email_trial_1_cta_clicked"
=>
0
,
"in_product_marketing_email_trial_2_sent"
=>
0
,
"in_product_marketing_email_trial_2_cta_clicked"
=>
0
,
"in_product_marketing_email_team_0_sent"
=>
0
,
"in_product_marketing_email_team_0_cta_clicked"
=>
0
,
"in_product_marketing_email_team_1_sent"
=>
0
,
"in_product_marketing_email_team_1_cta_clicked"
=>
0
,
"in_product_marketing_email_team_2_sent"
=>
0
,
"in_product_marketing_email_team_2_cta_clicked"
=>
0
}
expect
(
subject
).
to
eq
(
expected_data
)
end
end
end
describe
'.snowplow_event_counts'
do
let_it_be
(
:time_period
)
{
{
collector_tstamp:
8
.
days
.
ago
..
1
.
day
.
ago
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment