Skip to content

Commit

Permalink
chore(survey): add august 2023 discoverability survey (#9440)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA authored Aug 7, 2023
1 parent e49d8aa commit 84ae026
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ jobs:
REACT_APP_MDN_PLUS_10Y_PLAN: price_1KeG02JNcmPzuWtRlrSiLTI6

# Surveys.
REACT_APP_SURVEY_START_BLOG_FEEDBACK_2023: 1687867200000 # (new Date("2023-06-27 12:00:00Z").getTime())
REACT_APP_SURVEY_END_BLOG_FEEDBACK_2023: 1688299200000 # (new Date("2023-07-02 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_BLOG_FEEDBACK_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_BLOG_FEEDBACK_2023: 0.05 # 5%
REACT_APP_SURVEY_START_DISCOVERABILITY_AUG_2023: 1691409600000 # new Date("2023-08-07 12:00:00Z").getTime()
REACT_APP_SURVEY_END_DISCOVERABILITY_AUG_2023: 1691841600000 # new Date("2023-08-12 12:00:00Z").getTime()
REACT_APP_SURVEY_RATE_FROM_DISCOVERABILITY_AUG_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_DISCOVERABILITY_AUG_2023: 0.10 # 10%

# Telemetry.
REACT_APP_GLEAN_CHANNEL: prod
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ jobs:
REACT_APP_MDN_PLUS_10Y_PLAN: price_1K6X8VKb9q6OnNsLFlUcEiu4

# Surveys.
REACT_APP_SURVEY_START_BLOG_FEEDBACK_2023: 0 # stage
REACT_APP_SURVEY_END_BLOG_FEEDBACK_2023: 1688299200000 # (new Date("2023-07-02 12:00:00Z").getTime())
REACT_APP_SURVEY_RATE_FROM_BLOG_FEEDBACK_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_BLOG_FEEDBACK_2023: 0.05 # 5%
REACT_APP_SURVEY_START_DISCOVERABILITY_AUG_2023: 0 # stage
REACT_APP_SURVEY_END_DISCOVERABILITY_AUG_2023: 1691841600000 # new Date("2023-08-12 12:00:00Z").getTime()
REACT_APP_SURVEY_RATE_FROM_DISCOVERABILITY_AUG_2023: 0.0
REACT_APP_SURVEY_RATE_TILL_DISCOVERABILITY_AUG_2023: 0.10 # 10%

# Telemetry.
REACT_APP_GLEAN_CHANNEL: stage
Expand Down
16 changes: 9 additions & 7 deletions client/src/ui/molecules/document-survey/surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ enum SurveyBucket {
WEB_COMPONENTS_2023 = "WEB_COMPONENTS_2023",
DISCOVERABILITY_2023 = "DISCOVERABILITY_2023",
WEB_SECURITY_2023 = "WEB_SECURITY_2023",
DISCOVERABILITY_AUG_2023 = "DISCOVERABILITY_AUG_2023",
}

enum SurveyKey {
Expand All @@ -41,18 +42,19 @@ enum SurveyKey {
WEB_COMPONENTS_2023 = "WEB_COMPONENTS_2023",
DISCOVERABILITY_2023 = "DISCOVERABILITY_2023",
WEB_SECURITY_2023 = "WEB_SECURITY_2023",
DISCOVERABILITY_AUG_2023 = "DISCOVERABILITY_AUG_2023",
}

export const SURVEYS: Survey[] = [
{
key: SurveyKey.BLOG_FEEDBACK_2023,
bucket: SurveyBucket.BLOG_FEEDBACK_2023,
key: SurveyKey.DISCOVERABILITY_AUG_2023,
bucket: SurveyBucket.DISCOVERABILITY_AUG_2023,
show: (doc: Doc) => /en-US\/docs\/(Web|Learn)(\/|$)/i.test(doc.mdn_url),
src: "https://survey.alchemer.com/s3/7397017/MDN-Blog-user-feedback",
src: "https://survey.alchemer.com/s3/7457498/MDN-Discoverability-User-Satisfaction",
teaser:
"We recently launched the MDN blog to enrich our platform with valuable content and enhance your experience. To ensure that we are meeting your needs, we would like to hear your thoughts and feedback through a short user satisfaction survey.",
question: "How satisfied are you with your experience of the MDN blog?",
...survey_duration(SurveyBucket.BLOG_FEEDBACK_2023),
...survey_rates(SurveyKey.BLOG_FEEDBACK_2023),
"At MDN, we are committed to improving the user experience on our website. To ensure that we are meeting this goal, we would like to hear your thoughts and feedback regarding your experience on MDN.",
question: "What’s your experience on MDN Web Docs?",
...survey_duration(SurveyBucket.DISCOVERABILITY_AUG_2023),
...survey_rates(SurveyKey.DISCOVERABILITY_AUG_2023),
},
];

0 comments on commit 84ae026

Please sign in to comment.