{"id":15939431,"url":"https://github.com/thevrus/astro-umami-analytics","last_synced_at":"2025-09-23T06:37:54.817Z","repository":{"id":257812766,"uuid":"868585535","full_name":"thevrus/astro-umami-analytics","owner":"thevrus","description":"Easily integrate Umami analytics into your Astro projects with this simple, lightweight component.","archived":false,"fork":false,"pushed_at":"2024-10-06T19:05:02.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T10:28:22.393Z","etag":null,"topics":["analytics","astro","astrojs","umami","umami-analytics"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/astro-umami-analytics","language":"TypeScript","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/thevrus.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":"2024-10-06T18:49:42.000Z","updated_at":"2025-03-06T16:45:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"93c4f4c5-1c6a-4303-be40-7c28f47cd7f0","html_url":"https://github.com/thevrus/astro-umami-analytics","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"475aac2d18c80e6b136b25f61f9044f603fb11c2"},"previous_names":["thevrus/astro-umami"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevrus%2Fastro-umami-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevrus%2Fastro-umami-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevrus%2Fastro-umami-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thevrus%2Fastro-umami-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thevrus","download_url":"https://codeload.github.com/thevrus/astro-umami-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252546494,"owners_count":21765780,"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","astro","astrojs","umami","umami-analytics"],"created_at":"2024-10-07T06:04:31.581Z","updated_at":"2025-09-23T06:37:49.769Z","avatar_url":"https://github.com/thevrus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# astro-umami-analytics\n\nAn Astro component for easy integration of Umami analytics into your Astro projects.\n\n## Installation\n\nTo install astro-umami-analytics, run the following command in your project directory:\n\n```bash\nnpm install astro-umami-analytics\n```\n\n## Usage\n\nTo use the Umami component in your Astro project, follow these steps:\n\n1. Import the Umami component in your Astro layout or page:\n\n```astro\n---\nimport { Umami } from \"astro-umami-analytics\";\n---\n```\n\n2. Add the Umami component to your `\u003chead\u003e` section, providing your Umami website ID:\n\n```astro\n\u003chead\u003e\n  \u003c!-- Other head elements --\u003e\n  \u003cUmami id=\"your-umami-website-id\" /\u003e\n\u003c/head\u003e\n```\n\nHere's a complete example of how to use the Umami component in an Astro layout:\n\n```astro\n---\nimport { ViewTransitions } from \"astro:transitions\";\nimport { Umami } from \"astro-umami-analytics\";\n\ninterface Props {\n  title: string;\n  description: string;\n}\n\nconst { title, description } = Astro.props;\n---\n\n\u003c!doctype html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n    \u003cmeta name=\"description\" content={description} /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width\" /\u003e\n    \u003clink rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon.svg\" /\u003e\n    \u003cmeta name=\"generator\" content={Astro.generator} /\u003e\n    \u003ctitle\u003e{title}\u003c/title\u003e\n    \u003cViewTransitions /\u003e\n    \u003cUmami id=\"your-umami-website-id\" /\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cslot /\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nMake sure to replace `\"your-umami-website-id\"` with your actual Umami website ID.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Author\n\n- Vadym Rusin \u003crusinvadym@gmail.com\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevrus%2Fastro-umami-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthevrus%2Fastro-umami-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthevrus%2Fastro-umami-analytics/lists"}