{"id":14384383,"url":"https://github.com/manucaralmo/GlowCookies","last_synced_at":"2025-08-23T17:31:53.179Z","repository":{"id":37461735,"uuid":"300899843","full_name":"manucaralmo/GlowCookies","owner":"manucaralmo","description":"GlowCookies 🍪 - Powerful Cookie Consent Banner In JavaScript","archived":false,"fork":false,"pushed_at":"2024-11-15T19:05:11.000Z","size":234,"stargazers_count":324,"open_issues_count":20,"forks_count":64,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-15T20:19:06.751Z","etag":null,"topics":["accept-cookies","analytics","cookie-banner","cookies","cookies-alert","cookies-banner","cookies-consent","disable-cookies","facebook","facebook-pixel","frontend","gdpr","gdpr-compliant","gdpr-consent","gdpr-cookie","google-analytics","javascript","manage-cookies"],"latest_commit_sha":null,"homepage":"https://manucaralmo.github.io/glow-cookies-web/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manucaralmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"manucaralmo","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-10-03T14:31:01.000Z","updated_at":"2024-11-15T19:05:15.000Z","dependencies_parsed_at":"2024-11-15T20:18:49.001Z","dependency_job_id":"75522217-93fb-4c86-b9d2-afc0be6e9ee4","html_url":"https://github.com/manucaralmo/GlowCookies","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucaralmo%2FGlowCookies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucaralmo%2FGlowCookies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucaralmo%2FGlowCookies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manucaralmo%2FGlowCookies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manucaralmo","download_url":"https://codeload.github.com/manucaralmo/GlowCookies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230716496,"owners_count":18269778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accept-cookies","analytics","cookie-banner","cookies","cookies-alert","cookies-banner","cookies-consent","disable-cookies","facebook","facebook-pixel","frontend","gdpr","gdpr-compliant","gdpr-consent","gdpr-cookie","google-analytics","javascript","manage-cookies"],"created_at":"2024-08-28T18:01:20.747Z","updated_at":"2025-08-23T17:31:53.099Z","avatar_url":"https://github.com/manucaralmo.png","language":"JavaScript","readme":"\u003cimg src=\"https://cabas.b-cdn.net/glowcookies/glowcookies.png\" data-canonical-src=\"https://cabas.b-cdn.net/glowcookies/glowcookies.png\" width=\"100%\" /\u003e\n\n![Badge-glow](https://img.shields.io/badge/GlowCookies-v.3.1.8-blue?style=flat-square) ![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hm/manucaralmo/GlowCookies?style=flat-square) [![GitHub contributors](https://img.shields.io/github/contributors/manucaralmo/GlowCookies?style=flat-square)](https://github.com/AmauriC/tarteaucitron.js/graphs/contributors) ![GitHub Repo stars](https://img.shields.io/github/stars/manucaralmo/GlowCookies?style=social)\n\n# GlowCookies 🍪 - Powerful Cookie Consent Banner In JavaScript\nSimple and full automated cookies banner for any website. Complies with the new European regulations with GlowCookies. Activate and deactivate Google Analytics, Facebook Pixel, Hotjar (and coming soon) cookies whenever the user wishes, with just 1 click.\n\n[![Foo](https://cdn.glowmedia.es/upload/uploads/ed1952btn.svg)](https://manucaralmo.github.io/glow-cookies-web/)\n\n## The cookies banner\n\u003cimg src=\"https://cdn.glowmedia.es/upload/uploads/90c82dbanner.png\" data-canonical-src=\"https://cdn.glowmedia.es/upload/uploads/90c82dbanner.png\" width=\"375\" /\u003e\n\n## How it works\nYou just have to install the code. When the user clicks on accept cookies, the google analytics tracking code, Facebook Pixel and/or Hotjar starts tracking. If the user rejects cookies, the tracking code will not start working.\n\n## How to use\nAdd this code to your html `\u003chead\u003e` or `\u003cbody\u003e` tag.\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/manucaralmo/GlowCookies@3.1.8/src/glowCookies.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    glowCookies.start('en', {\n        style: 1,\n        analytics: 'G-FH87DE17XF',\n        facebookPixel: '990955817632355',\n        policyLink: 'https://link-to-your-policy.com'\n    });\n\u003c/script\u003e\n```\n\n## Banner styles\nNow you can choose between these available banner styles:\n- Style `1`, `2` or `3`\n\nSet style in config object `glowCookies.start('en', { style: 3 })`\n\n## Languages\nNow you can choose between these available languages:\n- Afrikaans (`af`)\n- Brazilian portugese (`pt_BR`)\n- Bulgarian (`bg`)\n- Catalan (`ca`)\n- Chinese Simple (`zh`)\n- Chinese Traditional (`zh_TW`)\n- Danish (`da`)\n- Dutch (`nl`)\n- English (`en`)\n- French (`fr`)\n- German (`de`)\n- Italian (`it`)\n- Japanese (`ja`)\n- Malagasy (`mg`)\n- Norwegian (`no`)\n- Occitan (`oc`)\n- Polish (`pl`)\n- Russian (`ru`)\n- Slovak (`sk`)\n- Spanish (`es`)\n- Swedish (`sv`)\n- Thai (`th`)\n- Turkish (`tr`)\n- Ukrainian (`uk`)\n\nSet language in the first parameter of `glowCookies.start('en', { })` method.\n\n## Tracking options\nThese are the parameters that you can modify to add your tracking codes or custom scripts.\n\n| Parameter               | Type   | Values                                                                                                              |\n| ----------------------- | ------ | ------------------------------------------------------------------------------------------------------------------- |\n| `analytics`             | String | Example: `\"G-FH87DE17XF\"` (Analytics tracking code)                                                                 |\n| `facebookPixel`         | String | Example: `\"990955817632355\"` (Facebook Pixel code)                                                                  |\n| `HotjarTrackingCode`    | String | Example: `\"990955817632355\"` (Hotjar tracking code)                                                                 |\n| `customScript` (Inline) | Object | Example: `[{ type: 'custom', position: 'body', content: 'console.log('custom script');' }]`                         |\n| `customScript` (src)    | Object | Example: `[{ type: 'src', position: 'head', content: 'https://www.googletagmanager.com/gtag/js?id=G-FH87DE17XF' }]` |\n\n## Config Banner\nThese are the parameters that you can modify to change certain banner options\n\n| Parameter        | Type    | Values                                                                           |\n| ---------------- | ------- | -------------------------------------------------------------------------------- |\n| `policyLink`     | String  | Example: `\"https://yourlink.com\"` (Your cookies policy link)                     |\n| `hideAfterClick` | Boolean | (`true` or `false`) Default: `true` (Hide banner after Accept or Reject cookies) |\n\n\n## Customize Banner\nNow there are certain parameters that you can change to customize your banner.\n\n| Parameter             | Type   | Values                                                                                                 |\n| --------------------- | ------ | ------------------------------------------------------------------------------------------------------ |\n| `border`              | String | (`\"border\"` or `\"none\"`) Default: `\"border\"`                                                           |\n| `position`            | String | (`\"left\"` or `\"right\"`) Default: `\"left\"`                                                              |\n| `bannerDescription`   | String | Example: `\"We use our own and third-party cookies to personalize content and to analyze web traffic.\"` |\n| `bannerLinkText`      | String | Example: `\"Read more about cookies\"`                                                                   |\n| `bannerBackground`    | String | Example: `\"#FAFAFA\"` Example: `\"lightblue\"`                                                            |\n| `bannerColor`         | String | Example: `\"#000\"` Example: `\"blue\"`                                                                    |\n| `bannerHeading`       | String | Example: `\"Use of cookies\"` Default: None                                                              |\n| `acceptBtnText`       | String | Example: `\"Accept cookies\"`                                                                            |\n| `acceptBtnColor`      | String | Example: `\"#000\"` Example: `\"blue\"`                                                                    |\n| `acceptBtnBackground` | String | Example: `\"#fff\"` Example: `\"white\"`                                                                   |\n| `rejectBtnText`       | String | Example: `\"Reject\"`                                                                                    |\n| `rejectBtnBackground` | String | Example: `\"#000\"` Example: `\"blue\"`                                                                    |\n| `rejectBtnColor`      | String | Example: `\"#fff\"` Example: `\"white\"`                                                                   |\n| `manageColor`         | String | Example: `\"#fff\"` Example: `\"white\"`                                                                   |\n| `manageBackground`    | String | Example: `\"#f2f2f2\"` Example: `\"blue\"`                                                                 |\n| `manageText`          | String | Example: `\"Manage cookies\"`                                                                            |\n\n\n## Fully customized banner\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/manucaralmo/GlowCookies@3.1.8/src/glowCookies.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    glowCookies.start('en', {\n        style: 2,\n        analytics: 'G-FH87DE17XF',\n        facebookPixel: '990955817632355',\n        hideAfterClick: true,\n        border: 'none',\n        position: 'right',\n        policyLink: 'https://google.es',\n        customScript: [{ type: 'custom', position: 'body', content: `console.log('my custom js');` }],\n        bannerDescription: 'banner desc',\n        bannerLinkText: 'banner link text',\n        bannerBackground: '#000',\n        bannerColor: '#fafafa',\n        bannerHeading: '\u003ch2\u003eCookies\u003c/h2\u003e',\n        acceptBtnText: 'accept btn text',\n        acceptBtnColor: 'green',\n        acceptBtnBackground: 'red',\n        rejectBtnText: 'reject btn text',\n        rejectBtnBackground: 'lightblue',\n        rejectBtnColor: 'blue',\n        manageColor: 'white',\n        manageBackground: 'blue',\n        manageText: 'cookies text'\n    });\n\u003c/script\u003e\n```\n\n## Contribute\nIf you know any other language, please help translate.\n- Update the `arrLang` of the `LanguageGC` class in glowCookies.js (Add an entry in this fashion.)\n- Update language documentation in README.md\n- Create a pull request\n```\nen: {\n    'bannerHeading': 'We use cookies',\n    'bannerDescription' : 'We use our own and third-party cookies to personalize content and to analyze web traffic.',\n    'bannerLinkText' : 'Read more about cookies',\n    'acceptBtnText' : 'Accept cookies',\n    'rejectBtnText' : 'Reject',\n    'manageText' : 'Manage cookies'\n}\n```\nThanks for your help! 🎉\n\n## Next steps\n- [ ] Advanced cookies management\n- [ ] Cookie settings\n\n### Request features\ninfo@glowmedia.es\n","funding_links":["https://ko-fi.com/manucaralmo"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanucaralmo%2FGlowCookies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanucaralmo%2FGlowCookies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanucaralmo%2FGlowCookies/lists"}