{"id":20571628,"url":"https://github.com/futurenorthants/cookiebanner","last_synced_at":"2026-02-25T21:05:44.327Z","repository":{"id":213128516,"uuid":"733101897","full_name":"FutureNorthants/CookieBanner","owner":"FutureNorthants","description":"A self-contained cookie banner for Google Analytics","archived":false,"fork":false,"pushed_at":"2023-12-19T11:12:41.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-09T17:02:04.371Z","etag":null,"topics":["cookie-banner","cookie-banner-javascript","cookies","google-analytics","google-analytics-4"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/FutureNorthants.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-18T15:09:05.000Z","updated_at":"2025-07-31T05:22:22.000Z","dependencies_parsed_at":"2023-12-18T17:28:32.418Z","dependency_job_id":"e94715db-5001-4428-809f-37a7a7a852c6","html_url":"https://github.com/FutureNorthants/CookieBanner","commit_stats":null,"previous_names":["futurenorthants/cookiebanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FutureNorthants/CookieBanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureNorthants%2FCookieBanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureNorthants%2FCookieBanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureNorthants%2FCookieBanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureNorthants%2FCookieBanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutureNorthants","download_url":"https://codeload.github.com/FutureNorthants/CookieBanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureNorthants%2FCookieBanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29839981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T20:42:33.054Z","status":"ssl_error","status_checked_at":"2026-02-25T20:42:21.322Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cookie-banner","cookie-banner-javascript","cookies","google-analytics","google-analytics-4"],"created_at":"2024-11-16T05:16:45.004Z","updated_at":"2026-02-25T21:05:44.312Z","avatar_url":"https://github.com/FutureNorthants.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cookie Banner\n\nA cookie banner that uses Google Analytics consent mode to determine whether to store cookies on the user's machine.\n\nIt follows the methodology on this tutorial: https://support.google.com/analytics/answer/9976101?hl=en\n\n## Usage\n\n1. Copy the contents of `src/cookie-banner.html` into your page.\n1. Find and replace `LINK_TO_COOKIE_POLICY` with a link to your cookie policy url.\n1. Find and replace `GOOGLE_ANALYTICS_ID` with your Google Analytics V4 id.\n1. When the user clicks Accept, it will store settings in the browsers local storage allowing functionality, security and analytics.\n1. When the user clicks Reject, it will store settings in the browsers local storage to deny all.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturenorthants%2Fcookiebanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuturenorthants%2Fcookiebanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuturenorthants%2Fcookiebanner/lists"}