# Cookies

{% hint style="info" %}
**Disclaimer:** It is the merchant’s responsibility to ensure that all cookie-related features comply with the data-protection laws, regulations, and policies that apply in their specific country and region.
{% endhint %}

To ensure that the **Nosto Plugin** and the **Nosto Debug Toolbar** operate correctly, the following cookies must be accepted:

| Cookie                          | Purpose                                                                                            |
| ------------------------------- | -------------------------------------------------------------------------------------------------- |
| `2c.cid`                        | Visitor-specific identifier used by Nosto for analytics and personalisation.                       |
| `nosto-integration-track-allow` | Indicates that Nosto tracking is permitted.                                                        |
| `nosto-search-session-params`   | Stores search-session parameters for more precise recommendations.                                 |
| `nostoCookieFilter`             | Includes all Search/Category merchandising filters and values                                      |
| `nostoCookieFilterMapping`      | Includes mapped Search/Category merchandising filters                                              |
| `nosto_preview`                 | Used to preview Search/Category merchandising results without enabling it globally on a live store |

***

### 1. Cookie-Consent Banner

When a customer visits the store for the first time after the Nosto Plugin has been installed, Shopware displays its default cookie-consent banner.

> **Why it matters**\
> These cookies load essential script files—including the Nosto Debug Toolbar—so declining them can prevent the plugin from functioning.

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

<figure><img src="/files/2CI1DlZ5QfjXBs9xMkpn" alt=""><figcaption></figcaption></figure>

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

After accepting Shopware default cookie consent, cookie `nosto-search-session-params` is created which then allows Nosto script to load as well as other Nosto functionality.&#x20;

***

### 2. Nosto Debug Toolbar

![](/files/XW0oWjBAMeEFendyff8V)<br>

The toolbar allows developers to inspect page-level Nosto events, placements, and requests while browsing the storefront.

**If you find the page load speeds a little slow, you can enable Nosto script initializiation on the page interaction, that means that Nosto will only run after the user interacts with the page (scroll, click etc)**

1. Navigate to **Settings → Plugins → Nosto → All Sales Channels**.
2. In **General Settings**, enable **Initialize Nosto Script After First Page Iteration**.

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

***

### 3. Automatic Cookie Acceptance (Optional)

If explicit cookie consent is **not** legally required in your region, you can configure Shopware to accept Nosto cookies automatically.

{% hint style="warning" %}
This may not work with third party cookie consent managers, and in this case you need to make sure to check the documentation and settings to allow all Nosto cookies.
{% endhint %}

#### Backend steps

1. Go to **Settings → Basic Information → Security and Privacy**.
2. Disable **Use default cookie notification**.<br>
3. Return to **Settings → Plugins → Nosto** and enable **Ignore cookie consent**.

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

> **Result**\
> Customers will no longer see the cookie-consent banner, and Nosto cookies will be set automatically on the first page load.

***

### 4. Third-Party Cookie consent Manager (not Shopware default)

In general Third-party cookie consent managers would override default Shopware cookie banner. This means that you would need to go through the documentation and settings of the specific cookie consent manager to allow Nosto Cookies.&#x20;

This can also mean that if Nosto plugin setting **Ignore cookie consent** is enabled, it could be blocked by a Third-party cookie consent manager unless its configured within its settings.\
\
Cookies below may need to be be explicitly added within the settings:

* `2c.cid`
* `nosto-integration-track-allow`
* `nosto-search-session-params`
* `nostoCookieFilter`
* `nostoCookieFilterMapping`
* `nosto_preview`

### 5. Summary Checklist

Banner shows on first visit (unless automatic acceptance is enabled).

`2c.cid`, `nosto-integration-track-allow`, and `nosto-search-session-params` are present after consent.

(Optional) **Initialize Nosto Script After First Page Iteration** is enabled for every sales channel

(Optional) **Ignore cookie consent** is enabled when automatic acceptance is desired.

***

#### Need help?

If the toolbar does not appear or tracking seems incomplete, verify that:

* All three cookies are present in the browser’s storage.
* No third-party script blockers are preventing Nosto from loading.

For additional assistance, contact **<support@nosto.com>** or consult the Nosto developer documentation.


---

# 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.nosto.com/shopware-6/getting-started/guides/cookies.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.
