{"id":16926162,"url":"https://github.com/pedroborges/kirby-google-analytics","last_synced_at":"2025-07-02T08:33:09.588Z","repository":{"id":127635352,"uuid":"82845992","full_name":"pedroborges/kirby-google-analytics","owner":"pedroborges","description":"⬢ A Kirby CMS snippet that adds the Google Analytics tracking script to your site!","archived":false,"fork":false,"pushed_at":"2020-04-30T09:57:36.000Z","size":2,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T00:43:25.969Z","etag":null,"topics":["analytics","google-analytics","kirby-cms","kirby-plugin"],"latest_commit_sha":null,"homepage":"","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/pedroborges.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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,"zenodo":null}},"created_at":"2017-02-22T19:50:23.000Z","updated_at":"2023-02-05T19:09:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"87ed5feb-d3bf-40cd-9321-cf6814f2c569","html_url":"https://github.com/pedroborges/kirby-google-analytics","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pedroborges/kirby-google-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroborges%2Fkirby-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroborges%2Fkirby-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroborges%2Fkirby-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroborges%2Fkirby-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedroborges","download_url":"https://codeload.github.com/pedroborges/kirby-google-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedroborges%2Fkirby-google-analytics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263102551,"owners_count":23414125,"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":["analytics","google-analytics","kirby-cms","kirby-plugin"],"created_at":"2024-10-13T20:29:12.184Z","updated_at":"2025-07-02T08:33:09.531Z","avatar_url":"https://github.com/pedroborges.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kirby Google Analytics [![Release](https://img.shields.io/github/release/pedroborges/kirby-google-analytics.svg)](https://github.com/pedroborges/kirby-google-analytics/releases) [![Issues](https://img.shields.io/github/issues/pedroborges/kirby-google-analytics.svg)](https://github.com/pedroborges/kirby-google-analytics/issues)\n\nA Kirby CMS snippet that adds the Google Analytics tracking script to your site!\n\n## Requirements\n- Kirby 2.4.0+\n- PHP 5.4+\n\n## Installation\nAfter installing the plugin using any of the methods below, add the snippet to the `site/snippet/footer` file (or anywhere in your templates):\n\n```php\n    \u003c?php snippet('google-analytics') ?\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n\u003e You will also need to set the `google.analytics` option (see below).\n\n### Download\n[Download the files](https://github.com/pedroborges/kirby-google-analytics/archive/master.zip) and place them inside `site/plugins/google-analytics`.\n\n### Kirby CLI\nKirby's [command line interface](https://github.com/getkirby/cli) makes installing the Google Analytics plugin a breeze:\n\n    $ kirby plugin:install pedroborges/kirby-google-analytics\n\nUpdating couldn't be any easier, simply run:\n\n    $ kirby plugin:update pedroborges/kirby-google-analytics\n\n### Git Submodule\nYou can add the Google Analytics plugin as a Git submodule.\n\n    $ cd your/project/root\n    $ git submodule add https://github.com/pedroborges/kirby-google-analytics.git site/plugins/google-analytics\n    $ git submodule update --init --recursive\n    $ git commit -am \"Add Google Analytics plugin\"\n\nUpdating is as easy as running a few commands.\n\n    $ cd your/project/root\n    $ git submodule foreach git checkout master\n    $ git submodule foreach git pull\n    $ git commit -am \"Update submodules\"\n    $ git submodule update --init --recursive\n\n## Options\nIn order to enable the snippet you need to set the `google.analytics` option:\n\n```php\n// Google Analytics tracking code\nc::set('google.analytics', 'UA-98765432-1');\n```\n\n## Change Log\nAll notable changes to this project will be documented at: \u003chttps://github.com/pedroborges/kirby-google-analytics/blob/master/changelog.md\u003e\n\n## License\nGoogle Analytics plugin is open-sourced software licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php).\n\nCopyright © 2017 Pedro Borges \u003coi@pedroborg.es\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedroborges%2Fkirby-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedroborges%2Fkirby-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedroborges%2Fkirby-google-analytics/lists"}