Automatic GDPR Cookies Banner for Google Analytics & Facebook Pixel | GlowCookies

GlowCookies is a simple and complete automatic cookie banner for any website. It complies with new European regulations with only two lines of code. Activate and disable Google Analytics cookies (more soon) whenever the user wishes, with just one click.

Must Read: Adding, Fetching, Modifying, and Removing Browser Cookies | cookieManager.js

Automatic GDPR Cookies Banner Details

Post NameGDPR Cookies Banner Glow-cookies
Author Namemanucaralmo
CategoryCookies, Popup Plugins
Official PageClick Here | Click Here
Official Websitegithub.com
Publish DateOctober 9, 2020
Last UpdateJune 30, 2023
DownloadLink Below
LicenseMIT

How to make use of it:

1. Download the package deal and place the cookiesGlow.js library.

<script src="v1/cookiesGlow.js"></script>

2. Insert your individual codes as follows. The library presently helps Google Analytics, Facebook Pixel, and Hotjar.

var AnalyticsCode = "UA-XXX-XX";
var FacebookPixelCode = "XXXXXX";
var HotjarTrackingCode = "XXXXXXX";

3. Specify your individual coverage web page.

var linkHref = "privacy-policy";

4. Customize the looks of the cookie consent banner.

// texts
var btn1Text = "Accept";
var btn2Text = "Reject";
var bannerDescription = "We use cookies for analytics, performance, security, advertising and social media. You consent to our cookies if you continue to use our website.";
var linkTexto = "More Info";
var manageText = "Cookies";

// colors
var btn1Background = "#E8E8E8"; 
var btn1Color = "#17663D";
var btn2Background = "#E8E8E8";
var btn2Color = "#17663D";
var bannerBackground = "#17663D";
var descriptionColor = "#fff";
var manageColor = "#E8E8E8";
var manageBackground = "#17663D";

// Extras
var border = "yes" // or "none"
var bannerPosition = "right" // or "left"

Languages

Now you can choose between these available languages:

  • Afrikaans (af)
  • Brazilian portugese (pt_BR)
  • Bulgarian (bg)
  • Catalan (ca)
  • Chinese Simple (zh)
  • Chinese Traditional (zh_TW)
  • Danish (da)
  • Dutch (nl)
  • English (en)
  • French (fr)
  • German (de)
  • Italian (it)
  • Japanese (ja)
  • Malagasy (mg)
  • Norwegian (no)
  • Occitan (oc)
  • Polish (pl)
  • Russian (ru)
  • Slovak (sk)
  • Spanish (es)
  • Swedish (sv)
  • Thai (th)
  • Turkish (tr)
  • Ukrainian (uk)

Set language in the first parameter of glowCookies.start('en', { }) method.

Tracking options

These are the parameters that you can modify to add your tracking codes or custom scripts.

ParameterTypeValues
analyticsStringExample: "G-FH87DE17XF" (Analytics tracking code)
facebookPixelStringExample: "990955817632355" (Facebook Pixel code)
HotjarTrackingCodeStringExample: "990955817632355" (Hotjar tracking code)
customScript (Inline)ObjectExample: [{ type: 'custom', position: 'body', content: 'console.log('custom script');' }]
customScript (src)ObjectExample: [{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }]

Config Banner

These are the parameters that you can modify to change certain banner options

ParameterTypeValues
policyLinkStringExample: "https://yourlink.com" (Your cookies policy link)
hideAfterClickBoolean(true or false) Default: true (Hide banner after Accept or Reject cookies)

Customize Banner

Now there are certain parameters that you can change to customize your banner.

ParameterTypeValues
borderString("border" or "none") Default: "border"
positionString("left" or "right") Default: "left"
bannerDescriptionStringExample: "We use our own and third-party cookies to personalize content and to analyze web traffic."
bannerLinkTextStringExample: "Read more about cookies"
bannerBackgroundStringExample: "#FAFAFA" Example: "lightblue"
bannerColorStringExample: "#000" Example: "blue"
bannerHeadingStringExample: "Use of cookies" Default: None
acceptBtnTextStringExample: "Accept cookies"
acceptBtnColorStringExample: "#000" Example: "blue"
acceptBtnBackgroundStringExample: "#fff" Example: "white"
rejectBtnTextStringExample: "Reject"
rejectBtnBackgroundStringExample: "#000" Example: "blue"
rejectBtnColorStringExample: "#fff" Example: "white"
manageColorStringExample: "#fff" Example: "white"
manageBackgroundStringExample: "#f2f2f2" Example: "blue"
manageTextStringExample: "Manage cookies"

See Demo And Download

GDPR-Cookies-Banner-GlowCookies

Official Website(manucaralmo): Click Here

This superior jQuery/javascript plugin is developed by manucaralmo. For extra advanced usage, please go to the official website.

Related Posts

VenoBox-Responsive-jQuery-Lightbox-Plugin

Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…

bootstrap-dropdown-on-hover

[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…

Google-Translate-Dropdown-Customize-With-Country-Flag

Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…

Bootstrap-Fileinput

HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Leave a Reply

Your email address will not be published. Required fields are marked *