Cookie Consent Generator
All tools
Generate cookies with modern way
A Free Cookie Consent solution for your website to comply with ePrivacy Directive & GDPR. Create your Cookie Consent notice banner code in 1 minute and comply with.
Start to Generate
Create a Cookie Consent for your website
2. Customize your Cookie Consent
Website name
Upload a company logo (optional)
Drag and drop or click to select
Upload a transparent logo.
Choose your notice popup style
Head Dialog
Bottom Dialog
Simple Dialog
Choose a mode
Light
Dark
Choose a your default language
Language missing? We accept user submissions! Contact us.
Enter the ID of a button/link to open the Preferences Center
Users should be able to change their preferences. Include a button/link anywhere on your website pages so that users can open the Preferences Center. Example:
<a href="#" id="open_preferences_center">Change your preferences</a>
Link to your Privacy Policy
Yes, I have a Privacy Policy
3. Add and organize your JavaScript scripts
This is an optional step, but you can organize your JavaScript scripts directly from this page.
For example, you can copy-paste your Google AdWords code here and select "Targeting & Advertising" and we will automatically convert your script code as required by the Cookie Consent tool.
Script name
Script type
Strictly Necessary
ie. account login related cookies
Functionality
ie. remembering users choices
Tracking & Performance
ie. Google Analytics
Targeting & Advertising
ie. Google AdSense, Google AdWords
Script code
4. Copy your Cookie Consent code
How to integrate Free Cookie Consent on your website
  1. Copy the generated code from Step 4 above and add it right before closing your <body> tag in your website.
  2. Tag any JavaScript <script>that you're using by changing the type="text/javascript" to type="text/plain".
  3. For each tagged <script>, add the corresponding consent level:
    • cookie-consent="strictly-necessary"for strictly necessary scripts that are loaded regardless of user choice
    • cookie-consent="functionality"for functionality scripts, such as language preference scripts
    • cookie-consent="tracking"for tracking scripts, such as Google Analytics
    • cookie-consent="targeting"for targeting scripts, such as Google Ads remarketing
  4. Done.
Example

    <!-- Login Cookies -->
    <script type="text/plain" cookie-consent="strictly-necessary" src="/js/login-session.js"></script>

    <!-- Google Analytics -->
    <script type="text/plain" cookie-consent="tracking">
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        ga('create', GOOGLE_PROPERTY_ID_GOES_HERE, 'auto');
        ga('send', 'pageview');
    </script>

Preview your
cookie popup