{"id":32151314,"url":"https://github.com/poissonballon/google-analytics-provider","last_synced_at":"2026-02-21T03:02:26.025Z","repository":{"id":63920326,"uuid":"142293457","full_name":"PoissonBallon/google-analytics-provider","owner":"PoissonBallon","description":"Google Analytics for Vapor","archived":false,"fork":false,"pushed_at":"2018-09-03T11:57:07.000Z","size":319,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-21T15:36:58.905Z","etag":null,"topics":["google-analytics","provider","swift","swift-server","vapor"],"latest_commit_sha":null,"homepage":null,"language":"Swift","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/PoissonBallon.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-07-25T11:56:38.000Z","updated_at":"2018-09-03T14:57:32.000Z","dependencies_parsed_at":"2023-01-14T14:00:44.985Z","dependency_job_id":null,"html_url":"https://github.com/PoissonBallon/google-analytics-provider","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/PoissonBallon/google-analytics-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoissonBallon%2Fgoogle-analytics-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoissonBallon%2Fgoogle-analytics-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoissonBallon%2Fgoogle-analytics-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoissonBallon%2Fgoogle-analytics-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoissonBallon","download_url":"https://codeload.github.com/PoissonBallon/google-analytics-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoissonBallon%2Fgoogle-analytics-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"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":["google-analytics","provider","swift","swift-server","vapor"],"created_at":"2025-10-21T10:41:20.573Z","updated_at":"2026-02-21T03:02:26.021Z","avatar_url":"https://github.com/PoissonBallon.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003e\n\u003ca href=\"https://github.com/PoissonBallon/google-analytics-provider\"\u003e\n\u003cimg src=\"./Assets/logo.png\" width=\"150\"/\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003c/a\u003e\nGoogle Analytics Provider\n\u003c/h3\u003e\n\n------\n\n[![Swift 4.1](https://img.shields.io/badge/Language-Swift%204.1-orange.svg)](https://developer.apple.com/swift/)\n[![Vapor 3](https://img.shields.io/badge/vapor-3-00B0FF.svg?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAyIDIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjI0JSIgeDI9IjAlIiB5Mj0iOTYlIiBpZD0iYyI+PHN0b3Agc3RvcC1jb2xvcj0iIzQzQzRGQyIvPjxzdG9wIHN0b3AtY29sb3I9IiNERjQzRjYiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGZpbGw9InVybCgjYykiIGQ9Ik0xLDAgQzEsMCAxLjcsMC45IDEuNywxLjMgQzEuNywxLjcgMS40LDIgMSwyIEMwLjYsMiAwLjMsMS43IDAuMywxLjMgQzAuMywwLjkgMSwwIDEsMCBaIi8+PC9zdmc+\n)](https://github.com/vapor/vapor)\n\nA Vapor provider for __Google Analytics__ - a pure Swift implementation of [Google Analytics Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1/)\n\n\n\n## Getting Started\nIn your `Package.swift` file, add the following\n\n~~~~swift\n.package(url: \"https://github.com/PoissonBallon/google-analytics-provider.git\", from: \"0.0.1\")\n~~~~\n\nRegister the config and the provider to your Application\n~~~~swift\nlet config = GoogleAnalyticsConfig(trackingID: \"UA-12XXXXX-Y\")\nservices.register(config)\ntry services.register(GoogleAnalyticsProvider())\n~~~~\n\nAnd you are all set. Interacting with the API is quite easy.\n~~~~swift\nlet gac = try req.make(GoogleAnalyticsClient.self)\ngac.send(hit: .event(category: \"API\", action: \"create TODO\"))\n~~~~\n\nAnd you can always check the documentation to see the required parameters for specific API calls.\n\n\n## Whats Implemented\n\n### Common Hit Types\n* [x] Page Tracking\n* [x] Event Tracking\n* [ ] Ecommerce Tracking\n* [ ] Social Tracking\n* [ ] Exception Tracking\n* [ ] User Timing Tracking\n* [ ] App / Screen Tracking\n\n\n---\n### Error and Quotas\n* [x] Too big hits\n* [x] Malformed Hits\n\n# Author\n\n* PoissonBallon [@poissonballon](https://twitter.com/poissonballon)\n\n\n## License\n\nGoogle Analytics Provider is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n## Want to help?\nFeel free to submit a pull request whether it's a clean up, a new approach to handling things, adding a new part of the API, or even if it's just a typo. All help is welcomed! 😀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoissonballon%2Fgoogle-analytics-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoissonballon%2Fgoogle-analytics-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoissonballon%2Fgoogle-analytics-provider/lists"}