# How to Add a Cookie Policy to Shopify

Generate and add a cookie policy on your Shopify website in minutes with our lifetime free cookie policy generator.

---

**Categories:** , 
**Published:** July 29, 2026
**URL:** https://www.cookieyes.com/documentation/how-to-add-a-cookie-policy-to-shopify/

---

This guide will walk you through how you can generate and add a cookie policy page on your Shopify store. A cookie policy is a document that provides detailed disclosure about the types of cookies used on a website and their purposes. It can help your website meet transparency requirements under privacy laws such as the GDPR and the ePrivacy Directive.
To begin with, [**sign up on CookieYes and try it for free**](https://app.cookieyes.com/trial?plan=pro-monthly&ref=Shopifycpg).

> **Note**

> After you sign up, you will be directed to the installation screens. You can install the cookie banner to support GDPR compliance for your cookie usage. If you prefer to create a cookie policy first, skip the installation and go directly to the **CookieYes Dashboard**.
>

You can also follow the step-by-step instructions below to easily add a cookie policy to your Shopify website.

## Generate a Cookie Policy in CookieYes

## Step 1: Access the Cookie Policy Generator

From your app’s top navigation bar, click on **Legal Policies** and select **Cookie Policy Generator** from the dropdown menu.

![](https://assets.cookieyes.com/cookie_policy_2175aa5d4d.png)

## Step 2: Configure Language Settings

1. Select your **primary** **language**. The chosen language will be highlighted with a checkmark.
2. (Optional) Enable **Generate policy in multiple languages **to add more languages. This feature is available on Basic, Pro and Ultimate plans.
3. Click **Save** **draft **to save your progress or **Next** to continue.

![](https://assets.cookieyes.com/webapp_languages_ad47b89103.png)

## Step 3: Add About Cookies Details

In the **About Cookies** section, edit the heading and description to explain what cookies are and why your website uses them, either by keeping the default text or customising it to better match your website’s practises.

![](https://assets.cookieyes.com/about_cookies_e0b471cb27.png)

## Step 4: Add Use of Cookies Details

In the **Use of Cookies** section, describe how your store uses cookies, such as for functionality, analytics, performance, or advertising. You can keep the default text if it is suitable, or update it for accuracy. Once done, use the **Preview cookie policy **to review the formatting and tone before proceeding.

![](https://assets.cookieyes.com/use_of_cookie_ae2e1f233a.png)

## Step 5: Review and Edit Types of Cookies

In the **Types of Cookies** section, you will see a list of cookies from your most recent website scan. If needed, you can refresh the list by clicking **Scan again **to capture any new cookies. The cookies are organised into categories such as **Necessary**, **Functional**, **Analytics**, **Performance** and **Advertisement**. Review each entry carefully to verify the cookie name, duration, and purpose for accuracy.

![](https://assets.cookieyes.com/Type_of_cookies_80e8f3403d.png)

## Step 6: Set Cookie Preferences and Generate the Policy

In the **Cookie Preferences** section, keep the default heading (**Manage cookie preferences**) and description, or update them with instructions specific to your users. Set the **Effective Date** for the cookie policy. Preview the policy to verify the details and when confirmed, click **Generate cookie policy** to generate the policy.

![](https://assets.cookieyes.com/cookie_preference_e5925bd224.png)

> **Note:**

> The **Revisit consent widget** enables your website visitors to manage their cookie preferences. You can remove the code in the field if you don’t want a widget to be displayed.
>
>
>

> **GDPR Compliance**
> To be GDPR compliant for your use of cookies, you should install a cookie banner on your website and obtain consent before deploying cookies on your visitor's devices.
> To install the banner, from the top navigation bar, click on **Advanced Settings > Banner Settings > Installation Code > Copy code**
> Refer: [How to add cookie banner on Shopify](https://www.cookieyes.com/documentation/cookie-banner-shopify/)
>

## Add the Cookie Policy to Shopify

After generating your cookie policy, review the preview in your selected language(s). When ready, click **Add policy to site** in the top-right corner.

![](https://assets.cookieyes.com/add_policy_to_site_905894cb93.png)

A modal window will appear. Follow the steps below to add your policy:

## Step 1: Choose your policy installation method

Choose your preferred method for adding the cookie policy to your Shopify website:

- **Option A: One-click install** **(Recommended):** Add your cookie policy in one click using your cookie banner script. It automatically updates the policy whenever changes are made.
- **Option B: Code snippet: **Keeps your cookie policy automatically updated.
- **Option C: HTML format:** Requires manual updates whenever the cookie policy changes.
![add-cpg-to-website.png](https://assets.cookieyes.com/add_cpg_to_website_08aa9c33c4.png)

## If you chose Option B or C:

1. Select your preferred language.
2. Click **Copy code**.

> **Tip**

> Use the **Send code to a teammate** option if someone else manages your website content.
>

> **Note**

> If you chose Option A (One-click install), there's no code to copy here. Continue to Step 2.
>

## Step 2: Create a Policy Page in Shopify

1. Log in to your Shopify account.
2. Go to **Online Store > Pages**.
![shopify-pages.png](https://assets.cookieyes.com/shopify_pages_5edc4c72eb.png)
3. Click **Add Page**. Enter the **Title** for the page and click **Save**.
![shopify-save-page.gif](https://assets.cookieyes.com/shopify_save_page_96d28b8ff9.gif)

## If you chose Option A (One-click install):

4. Copy the URL of your cookie policy page and paste it into the CookieYes web app.
![add-cp.png](https://assets.cookieyes.com/add_cp_cf59f3e25f.png)

## Step 3: Embed the Policy Code

## Option A: One-click install Method

If you selected the One-click install method, follow the steps below:

1. In the right panel of the Pages section, click the **View template** (eye icon) for the cookie policy page.
![shopify-view-template.png](https://assets.cookieyes.com/shopify_view_template_425aa8fcd7.png)
2. In the theme editor, go to **Template** > **Add section** and select **</> Custom Liquid **from the left panel.
![shopify-custom-liquid.png](https://assets.cookieyes.com/shopify_custom_liquid_fd4b65eb5a.png)
3. Paste `<div id="cky-auto-cookie-policy"></div>` into the Liquid code section and click **Save**.
![shopify-save-custom-code.png](https://assets.cookieyes.com/shopify_save_custom_code_9385f2f34c.png)
4. Return to the CookieYes web app and click **Publish cookie policy** to publish it. You can also preview the cookie policy.
![add-cookie-policy-to-website.png](https://assets.cookieyes.com/add_cookie_policy_to_website_e20226f704.png)

## Option B: Code Snippet Method

If you selected the Code Snippet Method, follow the steps below:

1. In the right panel of the **Pages**, click the **View Template (eye icon)** for the new page.
![shopify-view-template.png](https://assets.cookieyes.com/shopify_view_template_425aa8fcd7.png)
2. In the **theme editor**, go to **Template > Add Section** and select **</> Custom Liquid** from the left panel.
![shopify-custom-liquid.png](https://assets.cookieyes.com/shopify_custom_liquid_fd4b65eb5a.png)
3. Paste the JavaScript snippet into the **Liquid code** section and click **Save**.
![shopify-paste-code.png](https://assets.cookieyes.com/shopify_paste_code_51133c24c9.png)

## Option B: HTML Format Method

If you selected the HTML Format Method, follow the steps below:

1. In the page editor, click the **</> (Show HTML)** icon in the toolbar.
![shopify-show-html.png](https://assets.cookieyes.com/shopify_show_html_edd6af065c.png)
2. Paste the HTML into the **Content** field and click **Save**.
![shopify-html-format-save.png](https://assets.cookieyes.com/shopify_html_format_save_db3c6025f7.png)

> **Note:**

> If you want to remove the “Cookie Policy” heading that appears at the top of the page, delete the following line from the HTML code:
> `<h1 class="cookie-policy-h1">Cookie Policy</h1>`
>

Your cookie policy page will be live on your Shopify store. You can then link your cookie policy to your website footer or link it within your cookie banner.

## Conclusion

By following this guide, you can easily generate a cookie policy in CookieYes and publish it on your Shopify store. A properly configured cookie policy not only builds trust with your customers but also helps your store meet privacy requirements such as the GDPR and ePrivacy Directive.
With CookieYes, you have a flexible, compliant and up-to-date solution to manage cookies and privacy transparency on your Shopify store.


---

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "How to Add a Cookie Policy to Shopify",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.cookieyes.com/documentation/how-to-add-a-cookie-policy-to-shopify/"
      },
      "url": "https://www.cookieyes.com/documentation/how-to-add-a-cookie-policy-to-shopify/",
      "publisher": {
        "@type": "Organization",
        "name": "CookieYes",
        "url": "https://www.cookieyes.com",
        "logo": {
          "@type": "ImageObject",
          "url": "https://assets.cookieyes.com/cookieyes.png",
          "width": 250,
          "height": 60
        }
      },
      "description": "Generate and add a cookie policy on your Shopify website in minutes with our lifetime free cookie policy generator.",
      "datePublished": "2022-11-14T07:33:07+00:00",
      "dateModified": "2026-06-23T05:30:25+00:00",
      "author": {
        "@type": "Person",
        "name": "CookieYes Doc Team"
      },
      "image": [
        "https://assets.cookieyes.com/shopify_logo_1_bfc3fecd54.png"
      ]
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.cookieyes.com/documentation/how-to-add-a-cookie-policy-to-shopify/#breadcrumb",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": 1,
          "name": "Home",
          "item": "https://www.cookieyes.com/"
        },
        {
          "@type": "ListItem",
          "position": 2,
          "name": "Documentation",
          "item": "https://www.cookieyes.com/documentation/"
        },
        {
          "@type": "ListItem",
          "position": 3,
          "name": "Getting Started",
          "item": "https://www.cookieyes.com/category/documentation/getting-started/"
        },
        {
          "@type": "ListItem",
          "position": 4,
          "name": "Legal Policy Generators",
          "item": "https://www.cookieyes.com/category/documentation/getting-started/legal-policy-generators/"
        },
        {
          "@type": "ListItem",
          "position": 5,
          "name": "How to Add a Cookie Policy to Shopify"
        }
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://www.cookieyes.com/#website",
      "url": "https://www.cookieyes.com/",
      "name": "CookieYes",
      "description": "CookieYes is a Google-certified consent management platform that helps businesses comply with GDPR, CCPA, and other global privacy laws.",
      "inLanguage": "en-US",
      "publisher": {
        "@id": "https://www.cookieyes.com/#organization"
      },
      "potentialAction": {
        "@type": "SearchAction",
        "target": {
          "@type": "EntryPoint",
          "urlTemplate": "https://www.cookieyes.com/?s={search_term_string}"
        },
        "query-input": {
          "@type": "PropertyValueSpecification",
          "valueRequired": true,
          "valueName": "search_term_string"
        }
      }
    },
    {
      "@type": "Organization",
      "@id": "https://www.cookieyes.com/#organization",
      "name": "CookieYes",
      "url": "https://www.cookieyes.com/",
      "logo": {
        "@type": "ImageObject",
        "@id": "https://www.cookieyes.com/#/schema/logo/image/",
        "inLanguage": "en-US",
        "url": "https://assets.cookieyes.com/cookieyes.png",
        "contentUrl": "https://assets.cookieyes.com/cookieyes.png",
        "width": 19701,
        "height": 3176,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
