Skip to content

Commit

Permalink
Merge pull request #1705 from alphagov/phe-survey
Browse files Browse the repository at this point in the history
Add a survey for Public Health England & remove expired surveys
  • Loading branch information
elliotcm authored May 2, 2019
2 parents 673e99d + bfbbf33 commit 230c29c
Showing 1 changed file with 8 additions and 34 deletions.
42 changes: 8 additions & 34 deletions app/assets/javascripts/surveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,46 +95,20 @@
}
},
{
identifier: 'service_standards_reports_survey',
identifier: 'phe_survey',
surveyType: 'url',
frequency: 1,
startTime: new Date("February 26, 2019").getTime(),
endTime: new Date("March 27, 2019").getTime(),
url: 'https://www.smartsurvey.co.uk/s/SurveyStandardReportsPage/',
startTime: new Date("May 6, 2019").getTime(),
endTime: new Date("May 20, 2019").getTime(),
url: 'https://www.smartsurvey.co.uk/s/OZ4X6/',
templateArgs: {
title: "Help us improve Service Standards Reports on GOV.UK",
surveyCta: 'Take the 3 minute survey',
surveyCtaPostscript: '(This will open a short survey on another website)'
title: "Help us improve this page",
surveyCta: 'We want to know how you use evaluation information',
surveyCtaPostscript: '(This will open the sign-up form on another website)'
},
activeWhen: {
path: [
'^/service-standard-reports'
]
}
},
{
identifier: 'cookies-survey',
surveyType: 'url',
frequency: 6,
startTime: new Date("March 13, 2019").getTime(),
endTime: new Date("April 30, 2019").getTime(),
url: 'https://www.smartsurvey.co.uk/s/ZUHHE/?c={{currentPath}}',
templateArgs: {
title: "Help improve GOV.UK",
surveyCta: 'Take a short survey to make the website better',
surveyCtaPostscript: '(This will open a short survey on another website)'
},
activeWhen: {
matchType: 'exclude',
path: [
'^/topic/intellectual-property/trade-marks',
'^/topic/intellectual-property/patents',
'^/topic/intellectual-property/designs',
'^/government/organisations/intellectual-property-office',
'^/how-to-register-a-trade-mark',
'^/apply-for-a-patent',
'^/apply-register-design',
'^/service-standard-reports'
'^/government/collections/evaluation-in-health-and-wellbeing'
]
}
}
Expand Down

0 comments on commit 230c29c

Please sign in to comment.