{"id":18715182,"url":"https://github.com/bernhardwebstudio/wp-conditional-analytics","last_synced_at":"2025-11-10T05:30:16.678Z","repository":{"id":191406357,"uuid":"683615131","full_name":"BernhardWebstudio/wp-conditional-analytics","owner":"BernhardWebstudio","description":"WordPress Plugin providing a \"accept\" banner before embedding Google Analytics","archived":false,"fork":false,"pushed_at":"2024-02-16T18:36:25.000Z","size":297,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T09:43:14.293Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BernhardWebstudio.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}},"created_at":"2023-08-27T06:28:58.000Z","updated_at":"2023-08-29T12:48:44.000Z","dependencies_parsed_at":"2023-08-29T19:41:53.102Z","dependency_job_id":"976e08ca-594a-4241-bd01-ae60971ac7e2","html_url":"https://github.com/BernhardWebstudio/wp-conditional-analytics","commit_stats":null,"previous_names":["bernhardwebstudio/wp-conditional-analytics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernhardWebstudio%2Fwp-conditional-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernhardWebstudio%2Fwp-conditional-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernhardWebstudio%2Fwp-conditional-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BernhardWebstudio%2Fwp-conditional-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BernhardWebstudio","download_url":"https://codeload.github.com/BernhardWebstudio/wp-conditional-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576813,"owners_count":19662126,"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":"2024-11-07T13:07:52.783Z","updated_at":"2025-11-10T05:30:16.647Z","avatar_url":"https://github.com/BernhardWebstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-conditional-analytics\n\nWordPress Plugin providing a \"accept\" banner before embedding Google Analytics (and other scripts that can be registered)\n\n## API\n\n### PHP\n\nYou can use, for example, \n\n```php\nif (function_exists('wpca_enqueue_script')){\n  wpca_enqueue_script($id, $url);\n} else {\n  wp_enqueue_script($id, $url);\n}\n```\n\nto enqueue a script that should be loaded in case the cookies are accepted.\nDo this wherever (i.e., in a init hook) you would do the `wp_enqueue_script`.\n\n### JavaScript\n\nThis plugin exposes the following global functions:\n\n```javascript\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernhardwebstudio%2Fwp-conditional-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbernhardwebstudio%2Fwp-conditional-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbernhardwebstudio%2Fwp-conditional-analytics/lists"}