Skip to content

Commit

Permalink
Merge pull request #107 from digital-land/add-smartlook
Browse files Browse the repository at this point in the history
Add cookie notice and privacy notice for Smartlook
  • Loading branch information
GeorgeGoodall authored Jul 15, 2024
2 parents 190610a + f5e163b commit 87ef556
Show file tree
Hide file tree
Showing 7 changed files with 306 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/routes/cookies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import express from 'express'
import nunjucks from 'nunjucks'

const router = express.Router()

router.get('/', (req, res) => {
const cookiesPage = nunjucks.render('cookies.html', {})
res.send(cookiesPage)
})

export default router
11 changes: 11 additions & 0 deletions src/routes/privacy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import express from 'express'
import nunjucks from 'nunjucks'

const router = express.Router()

router.get('/', (req, res) => {
const privacyPage = nunjucks.render('privacy-notice.html', {})
res.send(privacyPage)
})

export default router
4 changes: 4 additions & 0 deletions src/serverSetup/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ import endpointSubmissionFormFormWisard from '../routes/form-wizard/endpoint-sub
import accessibility from '../routes/accessibility.js'
import polling from '../routes/api.js'
import health from '../routes/health.js'
import privacy from '../routes/privacy.js'
import cookies from '../routes/cookies.js'

export function setupRoutes (app) {
app.use('/', checkFormWizard)
app.use('/submit', endpointSubmissionFormFormWisard)
app.use('/accessibility', accessibility)
app.use('/api', polling)
app.use('/health', health)
app.use('/privacy-notice', privacy)
app.use('/cookies', cookies)
}
4 changes: 2 additions & 2 deletions src/views/accessibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

This accessibility statement applies to the check planning and housing data for England service (publish.development.digital-land.info).

This service is run by the Department for Levelling Up, Housing and Communities (DLUHC). We want as many people as possible to be able to use this service. For example, that means you should be able to:
This service is run by the Ministry of Housing, Communities and Local Government (MHCLG). We want as many people as possible to be able to use this service. For example, that means you should be able to:

- change colours, contrast levels and fonts using browser or device settings
- zoom in up to 400% without the text spilling off the screen
Expand Down Expand Up @@ -40,7 +40,7 @@

## Technical information about this service's accessibility

The Department for Levelling Up, Housing and Communities (DLUHC) is committed to making this service accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.
The Ministry of Housing, Communities and Local Government (MHCLG) is committed to making this service accessible, in accordance with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018.

### Compliance status

Expand Down
119 changes: 119 additions & 0 deletions src/views/cookies.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{% extends "layouts/main.html" %}

{% set pageName = 'Accessibility statement for check planning and housing data for England' %}

{% set markdownContent %}

# Check planning and housing data for England cookies notice

The Check planning and housing data for England service puts cookies onto your computer to collect information about how you use the service. This helps us to:



* update and improve the service based on your needs
* remember the notifications you’ve seen so that we do not show them to you again

We do not collect any personal information that could be used to identify you. Read our [privacy notice](/privacy-notice/) to see what personal information we do collect.


## Essential cookies

Essential cookies are needed for the service to work. We do not need to ask for permission to use them.


## How cookies are used on the Check planning and housing data for England service


### Our cookie banner (essential)

When you first visit the Check planning and housing data for England service, you will see a banner asking if you accept cookies. We’ll store a cookie to remember which option you selected. You can always change your mind and change your choice on this page.

Next time you visit the site, we will remember your preference and not show the banner again.

To do this, the Check planning and housing data for England service sets the following cookies:

<table class="govuk-table">
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Name</th>
<th scope="col" class="govuk-table__header">Purpose</th>
<th scope="col" class="govuk-table__header">Expires</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">cookies_preferences_set</th>
<td class="govuk-table__cell">Lets us know you've seen our cookie message</td>
<td class="govuk-table__cell">1 year</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">cookies_policy</th>
<td class="govuk-table__cell">Saves your cookie choices</td>
<td class="govuk-table__cell">1 year</td>
</tr>
</tbody>
</table>


### Smartlook cookies (optional)

We use Smartlook to measure how you use the Check planning and housing data for England service. This helps us to improve the service experience and make sure it’s meeting your needs. No personal data will be stored in the cookies.

Smartlook sets cookies that store information about:



* which parts of the service you visit
* how long you spend on each part
* what you click on the service

The cookies do not store any information you add to the service.


<table class="govuk-table">
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">Name</th>
<th scope="col" class="govuk-table__header">Purpose</th>
<th scope="col" class="govuk-table__header">Expires</th>
</tr>
</thead>
<tbody class="govuk-table__body">
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">SL_C_23361dd035530_SID</th>
<td class="govuk-table__cell">Lets us know you’re using the service</td>
<td class="govuk-table__cell">13 months</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">SL_L_23361dd035530_SID</th>
<td class="govuk-table__cell">Lets us know you’re using the service</td>
<td class="govuk-table__cell">13 months</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">AWSELB</th>
<td class="govuk-table__cell">Makes Smartlook quicker to load</td>
<td class="govuk-table__cell">13 months</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">SL_C_23361dd035530_DOMAIN</th>
<td class="govuk-table__cell">Temporary cookie to identify our service; it’s removed as soon as our service is detected</td>
<td class="govuk-table__cell">Almost immediately</td>
</tr>
<tr class="govuk-table__row">
<th scope="row" class="govuk-table__header">SMARTLOOK_LS_QUEUED_CHUNKS</th>
<td class="govuk-table__cell">Sends data to Smartlook in small chunks</td>
<td class="govuk-table__cell">13 months</td>
</tr>
</tbody>
</table>

You can [opt out](https://help.smartlook.com/docs/opt-out-of-smartlook) of Smartlook.


{% endset %}

{% block content %}

{{markdownContent | govukMarkdown(headingsStartWith="xl") | safe}}

{% endblock content %}
10 changes: 10 additions & 0 deletions src/views/layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ <h2 class="govuk-heading-m">Get help</h2>
Accessibility
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="/privacy-notice">
Privacy
</a>
</li>
<li class="govuk-footer__inline-list-item">
<a class="govuk-footer__link" href="/cookies">
Cookies
</a>
</li>
</ul>
{% endset %}

Expand Down
149 changes: 149 additions & 0 deletions src/views/privacy-notice.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
{% extends "layouts/main.html" %}

{% set pageName = 'Accessibility statement for check planning and housing data for England' %}

{% set markdownContent %}

# Check planning and housing data for England privacy notice


## Who we are

Check planning and housing data for England ([check.planning.data.go.uk](check.planning.data.go.uk)) is provided by the Ministry of Housing, Communities and Local Government (MHCLG).

MHCLG is the data controller for the service.


## What personal data we collect

The personal data we collect from you includes:



* your name and email address when you email a planning and housing dataset to us
* your name and email address if you send us feedback


## Other data we collect

We also record how you use the service, including which pages you visit and what you click on. This helps us to improve the service experience and make sure it’s meeting your needs. No personal data is recorded.


## Why we need your personal data

We collect your personal data to:



* respond to any feedback you send us, if you have asked us to
* contact you with any feedback we have about a planning and housing dataset you have sent us


## Why our use of your personal data is lawful

The legal basis for processing all personal data is that it’s necessary:



* to perform a task in the public interest
* in the exercise of our functions as a government department


## How we use your personal data

The personal data we collect may be shared with other government departments, agencies and public bodies. It may also be shared with our technology suppliers, for example our hosting provider.

We will share your personal data if we are required to do so by law - for example, by court order, or to prevent fraud or other crime.

We will not:



* sell or rent your personal data to third parties
* share your personal data with third parties for marketing purposes


## How long we keep your personal data

Personal data collected when you submit planning and housing data or a feedback form on the service is kept for as long as we need the personal data for the purposes of research, security or delivery of the service.


## Children’s privacy protection

Our services are not designed for, or intentionally targeted at, children 13 years of age or younger. We do not intentionally collect or maintain personal data about anyone under the age of 13.


## Where your personal data is processed and stored

We design, build and run our systems to make sure that your personal data is as safe as possible at all stages, both while it’s processed and when it’s stored.

All personal data is stored in the [European Economic Area](https://www.gov.uk/eu-eea) (EEA).

Where personal data processing happens in the US, suppliers need to meet the certification standards set out in the [UK-US data bridge](https://www.gov.uk/government/publications/uk-us-data-bridge-supporting-documents/uk-us-data-bridge-explainer) agreement. This facilitates flows of personal data to certified US companies that have opted in to the EU-US Data Privacy Framework.


## How we protect your personal data and keep it secure

We are committed to doing all that we can to keep your personal data secure. We have set up systems and processes to prevent unauthorised access or disclosure of your personal data - for example, we protect your personal data using varying levels of encryption.

We also make sure that any third parties that we deal with keep all personal data they process on our behalf secure.


## Your data protection rights

You have the right to request:



* information about how your personal data is processed
* a copy of that personal data
* that anything inaccurate in your personal data is corrected immediately

You can also:



* raise an objection about how your personal data is processed
* request that your personal data is erased if there is no longer a justification for it
* ask that the processing of your personal data is restricted in certain circumstances

If you have any of these requests, get in contact with our Knowledge and Information Access Team.

[Read the MHCLG personal information charter](https://www.gov.uk/government/organisations/ministry-of-housing-communities-local-government/about/personal-information-charter).


## Contact us or make a complaint

Contact the Knowledge and Information Access team if you:



* have a question about anything in this privacy notice
* think that your personal data has been misused or mishandled

Knowledge and Information Access Team \
[[email protected]](mailto:[email protected]) \
Ministry of Housing, Communities and Local Government \
2nd floor NW, Fry Building \
2 Marsham Street \
London \
SW1P 4DF \
United Kingdom

You can also make a complaint to the independent regulator the Information Commissioner's Office (ICO) at [https://ico.org.uk/make-a-complaint/](https://ico.org.uk/make-a-complaint/)


## Keeping our privacy notice up to date

We may change this privacy notice. Any changes will apply to you and your personal data immediately. You should regularly review this notice.

This notice was last updated on 21 June 2024.


{% endset %}

{% block content %}

{{markdownContent | govukMarkdown(headingsStartWith="xl") | safe}}

{% endblock content %}

0 comments on commit 87ef556

Please sign in to comment.