From 1a834ef744e5be2fedc93b46ec6755f8faa7a6d3 Mon Sep 17 00:00:00 2001 From: Elliot Crosby-McCullough Date: Thu, 2 May 2019 12:52:32 +0100 Subject: [PATCH 1/2] Remove expired surveys --- app/assets/javascripts/surveys.js | 44 ------------------------------- 1 file changed, 44 deletions(-) diff --git a/app/assets/javascripts/surveys.js b/app/assets/javascripts/surveys.js index a2c135cea..8d2a97a93 100644 --- a/app/assets/javascripts/surveys.js +++ b/app/assets/javascripts/surveys.js @@ -93,50 +93,6 @@ '^/apply-register-design' ] } - }, - { - identifier: 'service_standards_reports_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/', - 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)' - }, - 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' - ] - } } ], From bfbbf33c939019d55024547919408c098628a28d Mon Sep 17 00:00:00 2001 From: Elliot Crosby-McCullough Date: Thu, 2 May 2019 13:08:53 +0100 Subject: [PATCH 2/2] Add a survey for Public Health England --- app/assets/javascripts/surveys.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/assets/javascripts/surveys.js b/app/assets/javascripts/surveys.js index 8d2a97a93..dd55a9f15 100644 --- a/app/assets/javascripts/surveys.js +++ b/app/assets/javascripts/surveys.js @@ -93,6 +93,24 @@ '^/apply-register-design' ] } + }, + { + identifier: 'phe_survey', + surveyType: 'url', + frequency: 1, + 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 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: [ + '^/government/collections/evaluation-in-health-and-wellbeing' + ] + } } ],