Home > Tools > Free Consent v2 Generator

Free Consent v2 Generator

Step 1

Customize your cookie consent

Step 2

Generate your cookie consent

Enter a name for the script (ie. Google Analytics), select the cookie consent level (ie. Tracking) and copy-paste the script code.

Step 3

Copy your cookie consent code

You're done. Copy your Cookie Consent code below.

Place the code right after <body>.

Simplify Compliance with Ease

Switas Consent Widget v2 is the ultimate solution for managing user consent on your website. Our free, open-source widget ensures you stay compliant with privacy laws while providing a seamless user experience.

How to Integrate Free Cookie Consent on Your Website

  1. Copy the generated code from Step 3 above and add it on 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:
    • data-cookie-consent="strictly-necessary" for strictly necessary scripts that are loaded regardless of user choice
    • data-cookie-consent="functionality" for functionality scripts, such as language preference scripts
    • data-cookie-consent="tracking" for tracking scripts, such as Google Analytics 4
    • data-cookie-consent="targeting" for targeting scripts, such as Google Ads Remarketing, Meta Pixel

Example Usage

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

<!-- Google Analytics -->
<script type="text/plain" data-cookie-consent="tracking">
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
ga('create', GOOGLE_PROPERTY_ID_GOES_HERE, 'auto');
ga('send', 'pageview');

Why Choose Switas Consent Widget v2?

  • Free to use: It is always free to use and feel free to ask about integrations also. See at Github: https://github.com/switaslabs/switas-consent-v2
  • Effortless Integration: Add to your website in minutes with easy-to-follow instructions.
  • Customizable Design: Tailor the widget to match your site's look and feel.
  • User-Friendly Interface: Clear options for users to give or withdraw consent.
  • Regulation Ready: Compliant with GDPR, CCPA, and other major privacy laws.

Key Features

  • Easy Setup: Quick and simple installation process.
  • Flexible Customization: Adjust colors, fonts, and text to fit your brand.
  • Responsive Design: Works seamlessly on all devices.
  • Analytics Integration: Track user consents and preferences.
  • Multi-Language Support: Cater to a global audience with multiple language options.

Manage User Consent

Enable users to easily accept, decline, or customize their privacy settings. Ensure compliance with the latest privacy regulations. This widget idea and execution is based on Free Cookie Consent tool

Need Help?

Check out our documentation for detailed instructions and troubleshooting tips. For any questions, feel free to contact us.

About Switas

At Switas, we are dedicated to providing innovative solutions that empower businesses to grow and thrive in the digital landscape. Our commitment to privacy and user experience drives us to create tools that are both powerful and easy to use.