Test site

Parts of this site may not work and will change

Opt-in to give consent

This pattern is currently under development.

Notifying the user of data collection and asking them to consent to it.

We have a responsibility to ask users for consent when we want to collect, store, or use their data especially personal information.

This pattern asks the user to:

When to use this pattern

Use this pattern when:

When not to use this pattern

Don’t use this pattern when:

How this pattern works

When you collect a user’s data, make sure the following are present, easy to find, read, and use.

Privacy statement

A summarized privacy statement highlighting the type(s) of data collection, storage, and use, with links to the full statement. Be sure to use proper heading levels, typically a h2 is used.

Example of a privacy statement

Privacy policy [H2]

[You can add a custom privacy statement here that adheres to the Government of Canada privacy. It should be clear how the users personal information will and will not be used. Examples follow.]

Your information will not be used for any decision-making process that affects your access to Government of Canada services. Your personal information will not be used for any administrative purposes.

Your personal information and feedback are confidential.

Your information will be used by Employment and Social Development Canada for [Briefly explain what the information will be used for].

What we will collect [H3]

We need the following information so we can [Briefly explain why you need the following data]:

  • Email address
  • [List more mandatory personal identifying fields]

You can also choose to share more information with us so we can [Briefly explain how providing the following data will enable services for the user]:

  • Province or territory
  • [List more optional personal identifying fields]

We collect this information to ensure our research groups are diverse, and to identify trends in feedback for specific groups.

Read the full privacy policy.

Code
<h2>Privacy policy</h2>
<p>Your information <strong>will not</strong> be used for any decision-making process that affects your access to Government of Canada services. Your personal information <strong>will not</strong> be used for any administrative purposes.</p>
<p>Your personal information and feedback are confidential.</p>
<p>Your information <strong>will</strong> be used by Employment and Social Development Canada for ...</p>
<h3>What we will collect</h3>
<p>We need the following information so we can ...:</p>
<ul>
    <li>Email address</li>
    <li>...</li>
</ul>
<p>You can also choose to share more information with us so we can ...:</p>
<ul>
    <li>Province or territory</li>
    <li>...</li>
</ul>
<p>We collect this information to ensure our research groups are diverse, and to identify trends in feedback for specific groups.</p>
<p><a href="https://www.canada.ca/en/transparency/privacy.html">Read the full privacy policy.</a></p>

Opt-out description

A brief description of how to opt-out, correct, or delete their data later. The section should start with the same level heading as the Privacy statement, typically a h2.

Example of an opt-out description

How to unsubscribe from [identify what the user is unsubscribing from] [H2]

If you have previously signed up to become a participant and no longer wish to be contacted for future [explain in detail what the user is unsubscribing from], you can unsubscribe yourself from the participant list and we will remove your personal information.

Code
<h2>How to unsubscribe from ...</h2>
<p>If you have previously signed up to become a participant and no longer wish to be contacted for future ..., you can <a href="#unsubscribe">unsubscribe</a> yourself from the participant list and we will remove your personal information.</p>

Affirmative action

An affirmative action the user can take to opt-in by agreeing to the privacy statement (for example, a checkbox that isn’t pre-selected).

Example of an affirmative action

Code
<div class="checkbox-inline">
    <label for="consent" class="required">
        <input type="checkbox" id="consent" name="consent" value="consent">
        <strong>I have read, understood and agree to the above. I affirm that I am 18 years old, or older. I understand that I can withdraw from this ... at any time without consequence.</strong>
    </label>
</div>

Research and impacts

Coming soon

Recent changes

Contribute to a Data Pattern

We love receiving feedback! If you notice something we should fix or if you would like to add a new one to our list, please make that request by forking the project and submitting a Pull Request to our GitHub repository. You can also send us an email.

See our CONTRIBUTING.md guide on how to do this.

All content of the Data Patterns Library is available under the Open Government Licence - Canada