{"id":24383486,"url":"https://github.com/firstandthird/wp-gdpr-consent","last_synced_at":"2025-06-16T05:04:11.422Z","repository":{"id":42742294,"uuid":"161556753","full_name":"firstandthird/wp-gdpr-consent","owner":"firstandthird","description":"GDPR consent bar for wordpress","archived":false,"fork":false,"pushed_at":"2023-01-06T12:12:25.000Z","size":1545,"stargazers_count":1,"open_issues_count":13,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-04T09:40:28.232Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firstandthird.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}},"created_at":"2018-12-12T23:15:13.000Z","updated_at":"2021-12-02T16:53:46.000Z","dependencies_parsed_at":"2023-02-06T01:30:44.082Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/wp-gdpr-consent","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwp-gdpr-consent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwp-gdpr-consent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwp-gdpr-consent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fwp-gdpr-consent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/wp-gdpr-consent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243259050,"owners_count":20262388,"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":[],"created_at":"2025-01-19T10:14:35.966Z","updated_at":"2025-03-12T17:20:53.661Z","avatar_url":"https://github.com/firstandthird.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GDPR Consent\n\nA very simple consent bar.\n\nThis plugin has already been approved by Wordpress for use in VIP installations.\n\n### Installing on VIP GO\n\nSubtree\n```shell\ngit subtree add --prefix plugins/wp-gdpr-consent https://github.com/firstandthird/wp-gdpr-consent 2.0.0 --squash\n```\n\nSubmodule\n```shell\ngit submodule add https://github.com/firstandthird/wp-gdpr-consent.git plugins/wp-gdpr-consent\n```\n\nAdd this to `client-mu-plugins/plugin-loader.php` or similar:\n\n```php\nwpcom_vip_load_plugin( 'wp-gdpr-consent' );\n```\n\n### Installing on other Wordpress installations\n\nDownload the latest release and copy the contents of the zip file to the plugins directory.\n\nActivate the plugin.\n\n### First use\n\nGo to Settings » GDPR Consent\n\nClick save to set default text.\n\nBanner should show up on site mainpage.\n\n### Wrapping scripts\n\nSome scripts should only be run once consent has been granted. This plugin includes a helper method to queue up scripts.\n\n```javascript\nif (window.gdprSafeTrack) {\n  window.gdprSafeTrack(function() {\n    // place your script here\n  });\n}\n```\n\nYou can also use `window.gdprSafeTrack` to load scripts once consent has been granted:\n\n```html\n\u003cscript\u003e\n  window.gdprSafeTrack('https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxxx-x');\n\u003c/script\u003e\n```\n\n### Dev setup\n\n`./run`\n\nOpen browser: http://localhost:8080\n\nInstall wordpress.\n\nActivate plugin.\n\n`yarn install`\n\n`yarn dev`\n\n### Debug\n\nThese hashes can be used to help debug:\n\n - `#gdpr-debug` - Logs out some useful information including when safe track callbacks are fired\n - `#gdpr-debug-clean` - Same as above but does not used stored cookie.\n - `#gdpr-debug-cookies` - Outputs any cookies set after 10 seconds.\n\nNote: clean and cookies may be combined together: `gdpr-debug-clean-cookies`\n\n### Creating plugin zip\n\n`./run generate-package`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fwp-gdpr-consent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fwp-gdpr-consent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fwp-gdpr-consent/lists"}