{"id":20038006,"url":"https://github.com/perfectlysoft/perfect-googleanalytics-measurementprotocol","last_synced_at":"2025-05-05T06:31:58.974Z","repository":{"id":63920158,"uuid":"77109553","full_name":"PerfectlySoft/Perfect-GoogleAnalytics-MeasurementProtocol","owner":"PerfectlySoft","description":"Server side Google Analytics, using Swift / Perfect","archived":false,"fork":false,"pushed_at":"2019-03-26T17:58:23.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-14T13:17:11.998Z","etag":null,"topics":["analytics","api","google","google-analytics","perfect","server-side-swift","swift"],"latest_commit_sha":null,"homepage":"https://www.perfect.org","language":"Swift","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/PerfectlySoft.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}},"created_at":"2016-12-22T03:41:54.000Z","updated_at":"2019-03-26T17:57:59.000Z","dependencies_parsed_at":"2023-01-14T14:00:32.701Z","dependency_job_id":null,"html_url":"https://github.com/PerfectlySoft/Perfect-GoogleAnalytics-MeasurementProtocol","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-GoogleAnalytics-MeasurementProtocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-GoogleAnalytics-MeasurementProtocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-GoogleAnalytics-MeasurementProtocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerfectlySoft%2FPerfect-GoogleAnalytics-MeasurementProtocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerfectlySoft","download_url":"https://codeload.github.com/PerfectlySoft/Perfect-GoogleAnalytics-MeasurementProtocol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224429254,"owners_count":17309676,"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","api","google","google-analytics","perfect","server-side-swift","swift"],"created_at":"2024-11-13T10:24:38.741Z","updated_at":"2024-11-13T10:24:39.315Z","avatar_url":"https://github.com/PerfectlySoft.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Perfect Google Analytics Measurement Protocol\n\n[![Perfect logo](http://www.perfect.org/github/Perfect_GH_header_854.jpg)](http://perfect.org/get-involved.html)\n\n[![Perfect logo](http://www.perfect.org/github/Perfect_GH_button_1_Star.jpg)](https://github.com/PerfectlySoft/Perfect)\n[![Perfect logo](http://www.perfect.org/github/Perfect_GH_button_2_Git.jpg)](https://gitter.im/PerfectlySoft/Perfect)\n[![Perfect logo](http://www.perfect.org/github/Perfect_GH_button_3_twit.jpg)](https://twitter.com/perfectlysoft)\n[![Perfect logo](http://www.perfect.org/github/Perfect_GH_button_4_slack.jpg)](http://perfect.ly)\n\n\n[![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![Platforms OS X | Linux](https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat)](https://developer.apple.com/swift/)\n[![License Apache](https://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat)](http://perfect.org/licensing.html)\n[![Twitter](https://img.shields.io/badge/Twitter-@PerfectlySoft-blue.svg?style=flat)](http://twitter.com/PerfectlySoft)\n[![Join the chat at https://gitter.im/PerfectlySoft/Perfect](https://img.shields.io/badge/Gitter-Join%20Chat-brightgreen.svg)](https://gitter.im/PerfectlySoft/Perfect?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Slack Status](http://perfect.ly/badge.svg)](http://perfect.ly) [![GitHub version](https://badge.fury.io/gh/PerfectlySoft%2FPerfect-CURL.svg)](https://badge.fury.io/gh/PerfectlySoft%2FPerfect-CURL)\n\nGoogle Analytics Measurement Protocol support for Perfect\n\nThis project provides a Swift interface to the [Google Analytics Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/v1/).\n\nThis package builds with Swift Package Manager and is part of the [Perfect](https://github.com/PerfectlySoft/Perfect) project.\n\nEnsure you have installed and activated the latest Swift 4 tool chain.\n\n\n## Example usage:\n\n```swift\nPerfectGAMeasurementProtocol.propertyid = \"UA-XXXXXXXX-X\"\nlet gaex = PerfectGAEvent()\ngaex.user.uid = \"donkey\"\ngaex.user.cid = \"kong\"\ngaex.session.ua = \"aua\"\ngaex.traffic.ci = \"ci\"\ngaex.system.fl = \"x\"\ngaex.hit.ni = 2\n\n\ndo {\n\tlet str = try gaex.generate()\n\tprint(str)\n\tlet resp = gaex.makeRequest(useragent: \"TestingAPI1.0\", body: str)\n\tprint(resp)\n} catch {\n\tprint(\"\\(error)\")\n}\n\n```\n\n## API Documentation\n\nFor full API documentation please visit [https://www.perfect.org/docs/api-Perfect-GoogleAnalytics-MeasurementProtocol.html](https://www.perfect.org/docs/api-Perfect-GoogleAnalytics-MeasurementProtocol.html)\n\n## Building\n\nAdd this project as a dependency in your Package.swift file.\n\n``` swift\n.Package(url: \"https://github.com/PerfectlySoft/Perfect-GoogleAnalytics-MeasurementProtocol.git\", majorVersion: 3)\n```\n\n## Further Information\nFor more information on the Perfect project, please visit [perfect.org](http://perfect.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectlysoft%2Fperfect-googleanalytics-measurementprotocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperfectlysoft%2Fperfect-googleanalytics-measurementprotocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperfectlysoft%2Fperfect-googleanalytics-measurementprotocol/lists"}