# Show a Privacy Policy Notice (/docs/consent-management/configuration/privacy-policy-notice)

Admin Dashboard pages: /consent-manager/regional-experiences/purposes

Show a privacy policy notice once. Store that the visitor saw it as a hidden consent purpose. The purpose stays out of the consent banner.

Consent purposes are described in [Tracking Purposes](../concepts/tracking-purposes.mdx).

## 1. Create a hidden purpose [#1-create-a-hidden-purpose]

In the Admin Dashboard, go to [**Consent → Regional Experiences → Purposes**](https://app.transcend.io/consent-manager/regional-experiences/purposes).

Select **Add Purpose**. Use a slug that names this notice, such as `PolicyNotice1130`.

Set these fields:

- **Show In consent manager**: off. Do not add this purpose to the consent UI.
- **Show In Privacy Center**: off.
- **Configurable**: on. The snippet cannot save the purpose when this is off.

Leave the purpose out of every regional experience. Do not add it to **Applicable Consent Purposes** or **Default Disallowed Consent Purposes**.

A new purpose defaults to false. `airgap.getConsent()` returns false, or no value, until the snippet sets it to true.

Do not assign this purpose to a data flow or cookie. A false value would block those requests.

The same steps work for a terms notice. Use a different slug, and keep that purpose out of the consent UI.

## 2. Publish the bundle [#2-publish-the-bundle]

Select **Review Changes & Publish...**, then **Deploy Changes**.

airgap.js learns the new purpose only after the bundle deploys.

## 3. Add the snippet [#3-add-the-snippet]

Save the airgap.js load event as `airgapLoadEvent`. [`airgap.setConsent()`](./consent-ui/creating-your-own-ui.mdx#consent-authorization) needs that event as proof.

```html
<script
  src=".../airgap.js"
  onload="window.airgapLoadEvent = event"
></script>
<script>
  airgap.ready(() => {
    transcend.ready((transcend) => {
      const hasSeenNotice = airgap.getConsent().purposes.PolicyNotice1130;

      if (!hasSeenNotice) {
        transcend.showConsentManager({ viewState: 'PrivacyPolicyNotice' });
        airgap.setConsent(window.airgapLoadEvent, { PolicyNotice1130: true });
      }
    });
  });
</script>
```

The snippet checks `airgap.getConsent()`. When the purpose is not true, it calls `showConsentManager` with view state `PrivacyPolicyNotice`. It then calls `setConsent` with `airgapLoadEvent` and sets the purpose to true as soon as the notice is shown.

`PrivacyPolicyNotice` is the **Privacy Policy Notice** view state. You can use `PrivacyPolicyNoticeWithCloseButton` instead.

## 4. Change the purpose name for the next notice [#4-change-the-purpose-name-for-the-next-notice]

<Callout type="warn" title="Change the purpose name">
  Create a new purpose when a new notice must be shown again. Do not reuse
  the old slug. Do not add the new purpose to the consent UI.
</Callout>

Use a new slug, such as `PolicyNotice1201`. Update every `PolicyNotice1130` in the snippet to that slug.

Do not reuse `PolicyNotice1130`. Visitors who already have that purpose set to true will not see the notice again.

The slug cannot change after you create the purpose. Changing the **Name** field does not show the notice again.
