---
title: "Cookie notice, custom code and other campaign add-ons"
description: "Show a cookie notice, add HTML or custom CSS, get an email for each participant, and protect access with a token."
url: https://scratcher.io/help/elements/cookie-notice-and-custom-code
language: en
---

1. [Help center](https://scratcher.io/help)
2. [Elements and design](https://scratcher.io/help/elements)
3. Cookie notice, custom code and other campaign add-ons

# Cookie notice, custom code and other campaign add-ons

Show a cookie notice, add HTML or custom CSS, get an email for each participant, and protect access with a token.

## Cookie notice

If your campaign uses tracking pixels or analytics, ask visitors for consent first.

1. In the editor, open **Settings** > **Cookies**.
2. Turn on **Enable cookie notice**.
3. Click **Manage layout** to edit the texts and design.

On the **Content** tab of the cookie notice, you edit:

- **Dialog**: the **Heading** and **Description** of the first message.
- **Settings**: the texts of the preferences screen: **Preference header**, **Header**, **Description**, your **Privacy policy URL**, the **Required cookie duration** and **Required cookie description**, and the **Cookie columns** (**Column one** to **Column four**) of the cookie table.
- **Accordions**: the **Required cookies title**, **Required cookies description**, **Analytic cookies title** and **Analytic cookies description**.
- **Buttons**: the texts of the **Accept button**, **Reject button** and **Save button**.

On the **Styles** tab, choose the **Theme** (**Light**, **Dark** or **Custom** colors), the dialog **Type** (**Box**, **Cloud** or **Bar**), its **Alignment** (or **Vertical alignment** for a bar), the preferences screen's type and **Horizontal alignment**, and the small cookie icon that lets visitors change their choice later (its color, size, alignment and offset).

Tracking providers set up in the campaign only load after visitors accept.

## HTML / code element

The **Code** element lets you add your own HTML, for example an embed from another service. Only use code from sources you trust, and test it carefully.

## Campaign settings add-ons

Open **Settings** in the editor and click the add-ons button at the bottom (**Campaign settings add-ons**):

- **Custom CSS**: write CSS to change the look of the campaign beyond the normal settings. The CSS isn't shown in the editor, only in the preview and on the live campaign.
- **Notify on participation**: get an email with the lead's details every time someone takes part. Enter the email addresses, separated by commas.
- **Encrypted token**: only people with a special link that contains an encrypted token with their email or phone number can take part. Ask our team how to set it up.
- **Show tablet button**: show the **Tablet** view button above the page in the editor.

## Add-on settings at a glance

- **Notify on participation**: enter the addresses under **Emails (separated by commas)**.
- **Encrypted token** ("Require an encrypted token to access the campaign"): you must link to the live campaign with a token that includes the participant's email or phone number. Ask our team for help to set it up.
- **Custom CSS** ("Write custom CSS to apply to your campaign").

The cookie table has four columns: **Column one**, **Column two**, **Column three** and **Column four**.

Elements and design

- [How element settings work](https://scratcher.io/help/elements/element-settings-basics)
- [Edit text and headings](https://scratcher.io/help/elements/text-and-headings)
- [Buttons and click actions](https://scratcher.io/help/elements/buttons-and-click-actions)
- [Images, logos, video and fonts](https://scratcher.io/help/elements/images-video-and-fonts)
- [Sections, columns, dividers and spacers](https://scratcher.io/help/elements/sections-columns-and-layout)
- [Page settings, backgrounds and popup pages](https://scratcher.io/help/elements/page-settings-and-backgrounds)
- [Countdown, social, share and menu elements](https://scratcher.io/help/elements/countdown-social-share-and-menu)
- [Interactive graphics with clickable hotspots](https://scratcher.io/help/elements/interactive-graphic)
- [Cookie notice, custom code and other campaign add-ons](https://scratcher.io/help/elements/cookie-notice-and-custom-code)
- [Save and reuse templates](https://scratcher.io/help/elements/templates-and-reuse)

## Related articles

- [How element settings work](https://scratcher.io/help/elements/element-settings-basics): The Content, Styles, Settings and Effects tabs, sizes, shapes, borders, colors and backgrounds, mobile changes and add-ons.
- [Stop cheating and spam](https://scratcher.io/help/forms/prevent-cheating): How Scratcher protects your campaign in the background, and how you add captcha, block emails, domains and IP addresses, limit requests and protect the preview.
- [Track channels, Google Analytics and pixels](https://scratcher.io/help/results/track-channels-and-pixels): See which channel brings the most players, track button clicks, and send campaign events to Google Analytics, Tag Manager, Meta, Snapchat and TikTok.

## Still need help?

Real people are here to help. If you already use Scratcher, the quickest way is the chat inside the platform.

- **[Chat with us](https://platform.scratcher.io/login)**

    Log in and click the chat button in the bottom-right corner. Rex answers right away, and our team is a click away.
- **[Book a meeting](https://scratcher.io/book-a-meeting)**

    A free 30-minute video call with our team: a tour, campaign ideas or help with your setup.
- **[Email us](mailto:contact@scratcher.io)**

    Write to contact@scratcher.io and we will get back to you.
