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

chore(survey): add august 2023 discoverability survey #9440

Merged
merged 2 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
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
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),
},
];