{"id":13760124,"url":"https://github.com/generoi/wp-genero-cookieconsent","last_synced_at":"2025-12-24T17:12:45.627Z","repository":{"id":39576958,"uuid":"130903525","full_name":"generoi/wp-genero-cookieconsent","owner":"generoi","description":"A wordpress plugin providing a cookie consent popup using Cookie Consent by Insites","archived":false,"fork":false,"pushed_at":"2023-07-19T12:24:51.000Z","size":1937,"stargazers_count":9,"open_issues_count":13,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-30T13:49:52.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/generoi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-04-24T19:23:43.000Z","updated_at":"2023-03-29T20:16:46.000Z","dependencies_parsed_at":"2024-08-03T13:14:22.871Z","dependency_job_id":null,"html_url":"https://github.com/generoi/wp-genero-cookieconsent","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/generoi/wp-genero-cookieconsent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-genero-cookieconsent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-genero-cookieconsent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-genero-cookieconsent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-genero-cookieconsent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/generoi","download_url":"https://codeload.github.com/generoi/wp-genero-cookieconsent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/generoi%2Fwp-genero-cookieconsent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005414,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-03T13:01:03.688Z","updated_at":"2025-12-24T17:12:45.612Z","avatar_url":"https://github.com/generoi.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# wp-genero-cookieconsent\n\n\u003e A wordpress plugin providing a cookie consent popup using [Cookie Consent by Insites](https://cookieconsent.insites.com).\n\n## Installation\n\nRegular\n\n## Requirements\n\nACF is required to get an options page but if not available you can provide options using filters.\n\n## Features\n\n- Has layouts for Foundation Reveal and Callout\n- Basic fallback for sites without Foundation\n- WP Super Cache integration\n- Supports Opt in, Opt out and notice\n- Supports custom messages and button texts\n- Uses WordPress default Privacy Policy if available but can be set to a custom page.\n- Triggers events to GA and GTM\n\n## API\n\n```php\n// Modify values sent to JS.\nadd_filter('wp-genero-cookieconsent/options', function ($options) {\n  $options['options']['enabled'] = !WP_DEBUG;\n  return $options;\n});\n```\n\n## Events\n\n### Google Analytics\n\n|category | action | label | description|\n|---------|--------|-------|------------|\n|`cookieconsent`|`allow`||Triggered if cookies should be enabled|\n|`cookieconsent`|`deny`||Triggered if cookies should be disabled|\n|`cookieconsent`|`init`|`dismiss/allow/deny/show`|Triggered as soon as the plugin is initialized|\n|`cookieconsent`|`revoke`|`allow/deny/dismiss`|Triggered when a choice is revoked. Label will be set to the new consent status|\n|`cookieconsent`|`click`|`allow/deny/dismiss`|Triggered when the user clicks a popup button|\n\n### Google Tag Manager\n\nThe events are sent as `\u003ccategory\u003e.\u003caction\u003e`, for example: `cookieconsent.enable`.\n\n## GDPR\n\n|Category|Cookie|Description|\n|--------|------|-----------|\n|Strictly necessary|`cookieconsent_status`|Saves the consent status that has been given so we know what we can show the user. Has a lifetime of 1 year.|\n\n|Third pary|Type|Description|\n|----------|----|-----------|\n|-|-|-|\n\n## Development\n\nInstall dependencies\n\n    composer install\n    npm install\n\nRun the tests\n\n    npm run test\n\nBuild assets\n\n    # Minified assets which are to be committed to git\n    npm run build\n\n    # Development assets while developing the plugin\n    npm run build:development\n\n    # Watch for changes and re-compile while developing the plugin\n    npm run watch\n\nRebuild POT files (copy to each language as `languages/wp-genero-cookieconsent-\u003clangcode\u003e.po` and translate it)\n\n    npm run lang:pot\n\nCompile MO files (requires `msgfmt` which is available with  `brew install gettext \u0026\u0026 brew link gettext --force`)\n\n    npm run lang:mo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneroi%2Fwp-genero-cookieconsent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeneroi%2Fwp-genero-cookieconsent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeneroi%2Fwp-genero-cookieconsent/lists"}