Set up and adjust a cookie policy

Learn how to set up and adjust a cookie policy.

Cookie Information gives you various features to help with privacy compliance such as a cookie policy. This feature allows you to add a dynamic cookie policy to your page, displaying all information on scanner-detected and custom cookies.

In this article, we’ll show you how to set up and adjust your cookie policy.

Before you start

Here are a few things to know before you start:

  • Before adding a cookie policy to your website, check that the consent popup is set up.
  • Make sure that the languages set in the script’s data-culture attribute match the languages set up in the platform. To check the setup, go to Consent solutions > Choose your consent solution> Settings > General.

Set up a cookie policy

To set up a cookie policy, follow these steps:

  1. Add the following cookie policy script <script id="CookiePolicy" src="https://policy.app.cookieinformation.com/cid.js" data-culture="EN" type="text/javascript"></script> to your web page’s. Add the script in the <body> tag of the page where you want to show it.

Note: The data-culture = "EN" attribute controls the language that the popup will appear in on the site – in this example, it will be displayed in English. To change the language, set the data-culture attribute to a different language code.

Make sure that the languages set in the script’s data culture attribute match the languages set up in the platform. For more details, see this article.

Example:

  1. Copy a code from the table below and set it as the data-culture attribute for your desired language.

Language codes

Data cultureLanguageData cultureLanguage
ARArabicLTLithuanian
BGBulgarianLVLatvian
CACatalan, ValencianMSMalay
CSCzechNBNorwegian Bokmål
DADanishNNNorwegian Nynorsk
DEGermanNONorwegian
ELModern GreekNLDutch, Flemish
ENEnglishPLPolish
ESSpanish, CastilianPTPortuguese
ETEstonianRORomanian
FIFinnishRURussian
FRFrenchSKSlovak
HEModern HebrewSLSlovene
HIHindiSQAlbanian
HRCroatianSRSerbian
HUHungarianSVSwedish
IDIndonesianTHThai
ISIcelandicTRTurkish
ITItalianTWTaiwanese
JAJapaneseUKUkrainian
KOKoreanVIVietnamese
KLGreenlandicZHChinese
  1. Here’s an example of what the cookie policy looks like:
  1. Done.

Related articles

Was this article helpful?