# How to Add Cookie Banner on Angular Website

> For the complete site index, see [llms.txt](/llms.txt). Every page is also available as Markdown: replace the trailing slash with `.md` (`/pricing/` becomes `/pricing.md`), or send `Accept: text/markdown` to the page URL itself.

Learn how to add a cookie banner on your Angular website with our step-by-step guide.

---

**Categories:** Installation Guides, Getting Started
**Last updated:** June 2, 2025
**URL:** https://www.cookieyes.com/documentation/cookie-banner-on-angular/

---

Welcome to CookieYes! This documentation will guide you through setting up CookieYes on an Angular website. By following the steps, you can easily integrate CookieYes into your Angular website and enable a cookie consent banner.



## Step 1: Sign Up on CookieYes and Create a Cookie Banner.

To begin, follow the below steps:

- Sign up on CookieYes and try it for free.

- Once you have created the account, create a cookie banner for your website.

## Step 2: Install the cookie banner on the Angular website

To install the cookie banner, navigate to the src>`index.html` file in your Angular project and add the CookieYes Installation code within the head tag of the file.

You can copy your installation code from Advanced Settings from the top navigation panel of your CookieYes dashboard.



![Copy Code](https://assets.cookieyes.com/Copy_Code_42db741cc9.png)

After adding the code, the file should be like this:



![copy code](https://assets.cookieyes.com/copy_code_59291b4a40.png)

## Step 3: Verify Installation

After completing Step 2, you can verify the installation by clicking the Verify Installation button in the Cookieyes setup screen. If you have successfully installed the banner, you will see a success message showing that “You have successfully added the installation code to your site! ”.

![verified](https://assets.cookieyes.com/verified_cb8dec7ef7.jpg)

Now you will see the new cookie consent banner on your Angular website. From the CookieYes Dashboard, you can complete the website scanning and explore additional customizations and features.



> **See also**

> - [Features and integrations](https://www.cookieyes.com/category/documentation/features/)
> - [How to customize your cookie banner](https://www.cookieyes.com/documentation/add-cookie-banner-to-website/#Step2Customi-1)
> - [Ultimate guide to GDPR cookie consent](https://www.cookieyes.com/blog/gdpr-cookie-consent/)
> - [Frequently asked questions](https://www.cookieyes.com/documentation/helpguide-faq/)
>

Still, have questions or facing issues? Contact technical support


---

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Article",
      "headline": "How to Add Cookie Banner on Angular Website",
      "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://www.cookieyes.com/documentation/cookie-banner-on-angular/"
      },
      "url": "https://www.cookieyes.com/documentation/cookie-banner-on-angular/",
      "publisher": {
        "@type": "Organization",
        "name": "CookieYes",
        "url": "https://www.cookieyes.com",
        "logo": {
          "@type": "ImageObject",
          "url": "https://www.cookieyes.com/cookieyes-logo.png",
          "width": 2048,
          "height": 2048
        }
      },
      "description": "Learn how to add a cookie banner on your Angular website with our step-by-step guide.",
      "datePublished": "2023-05-31T08:35:13+00:00",
      "dateModified": "2025-06-02T06:20:38+00:00",
      "author": {
        "@type": "Person",
        "name": "CookieYes Doc Team"
      },
      "image": [
        "https://assets.cookieyes.com/Angular_full_color_logo_svg_300x300_3ae771130a.png"
      ]
    },
    {
      "@type": "BreadcrumbList",
      "@id": "https://www.cookieyes.com/documentation/cookie-banner-on-angular/#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": "Installation Guides",
          "item": "https://www.cookieyes.com/category/documentation/getting-started/installation-guides/"
        },
        {
          "@type": "ListItem",
          "position": 5,
          "name": "How to Add Cookie Banner on Angular Website",
          "item": "https://www.cookieyes.com/documentation/cookie-banner-on-angular/"
        }
      ]
    },
    {
      "@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://www.cookieyes.com/cookieyes-logo.png",
        "contentUrl": "https://www.cookieyes.com/cookieyes-logo.png",
        "width": 2048,
        "height": 2048,
        "caption": "CookieYes"
      },
      "image": {
        "@id": "https://www.cookieyes.com/#/schema/logo/image/"
      }
    }
  ]
}
```
