# Decline Button Customization

### What is the Decline Button?

The **Decline** button allows your website visitors to refuse non-essential cookies. Customizing how this button works helps you respect user preferences, maintain compliance, and deliver a smooth experience.

***

### Decline Button Visibility Options

You can choose where the Decline button appears in your cookie management interface:

* **Disable Decline Button:** Hide the Decline option if you do not want to offer it.
* **Show on Cookie Banner:** Display the Decline button directly on the cookie consent banner.
* **Show in Preferences Popup:** Place the Decline button within the preferences popup only.
* **Show on Both:** Make the Decline button available in both the banner and preferences popup for maximum visibility.

<figure><img src="/files/Lb0KtHI4ChFyAZnGin7C" alt=""><figcaption></figcaption></figure>

This flexibility lets you decide how and where users can decline non-essential cookies.

***

### Decline Button Actions

Consentik allows you to define what happens when a visitor clicks the Decline button. Choose the action that aligns with your privacy approach:

#### 1. Accept Necessary Cookies Only (Recommended)

* Only the cookies needed for the website to function will be accepted.
* All other (non-essential) cookies remain disabled.
* **Tip:** It’s best to update the Decline button label (e.g., “Accept Necessary Only”) so users clearly understand the action.

#### 2. Temporarily Hide the Banner

* The cookie banner will be temporarily hidden after clicking Decline, but may reappear later based on your configuration (e.g., after page reload or session end).

#### 3. Hide the Banner Permanently

* The banner will be closed and will not show again for that visitor, providing a cleaner experience.

#### 4. Redirect User to Another Page

* After clicking Decline, the user is redirected to a different page (for example, your privacy policy or a goodbye page).
* You can configure the specific URL for the redirect.

<figure><img src="/files/VCGoNR3QNc4LFVg1IrQS" alt=""><figcaption></figcaption></figure>

***

### How to Configure Decline Button Behavior

1. **Open the Consentik App** in Shopify.
2. Navigate to the **Settings -> Behavior -> Decline behavior** section.
3. **Choose Decline Button Visibility:**
   * Disable, show on banner, show in preferences popup, or show in both.
4. **Select Decline Action:**
   * Accept necessary cookies only (and update button text if desired)
   * Temporarily hide banner
   * Hide banner permanently
   * Redirect to another page (enter the redirect URL)
5. **Customize the Decline Button Label** to make its action clear to users, especially if you select “accept necessary cookies only.”
6. **Save your settings** and test on your storefront.

***

### Tips

* **Clarity is Key:** Always use clear, descriptive labels for the Decline button so users know what will happen.
* **Compliance:** Consult cookie regulations relevant to your market to ensure your Decline options meet legal requirements.
* **Redirect Thoughtfully:** If using the redirect option, send users to a helpful page (such as your privacy policy) instead of a blank or error page.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.consentik.com/settings/decline-button-customization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
