{"id":26030438,"url":"https://github.com/zunda-pixel/firebaseanalytics-swift","last_synced_at":"2026-04-22T04:31:58.933Z","repository":{"id":277462496,"uuid":"932486701","full_name":"zunda-pixel/firebaseanalytics-swift","owner":"zunda-pixel","description":"Firebase Analytics Client Open Source Project for Swift","archived":false,"fork":false,"pushed_at":"2025-12-01T08:40:44.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-03T19:56:31.986Z","etag":null,"topics":["firebase","firebaseanalytics","google","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zunda-pixel.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-14T01:44:14.000Z","updated_at":"2025-12-01T08:40:44.000Z","dependencies_parsed_at":"2025-04-15T16:37:18.790Z","dependency_job_id":"0af27d90-7f89-4ee3-b87f-4c9226f5ed4b","html_url":"https://github.com/zunda-pixel/firebaseanalytics-swift","commit_stats":null,"previous_names":["zunda-pixel/firebaseanalytics-swift"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zunda-pixel/firebaseanalytics-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ffirebaseanalytics-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ffirebaseanalytics-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ffirebaseanalytics-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ffirebaseanalytics-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zunda-pixel","download_url":"https://codeload.github.com/zunda-pixel/firebaseanalytics-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ffirebaseanalytics-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["firebase","firebaseanalytics","google","swift"],"created_at":"2025-03-06T18:28:51.210Z","updated_at":"2026-04-22T04:31:58.898Z","avatar_url":"https://github.com/zunda-pixel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# firebaseanalytics-swift\n\n\u003e [!IMPORTANT]\n\u003e This project is under development\n\nFirebase Analytics Client for Swift.\n\n```swift\nlet clientInformation: ClientInformation = .init(\n  os: \"ios\",\n  osVersion: \"18.3\",\n  deviceModel: \"iPhone17,3\",\n  locale: \"ja-jp\",\n  localeId: 540,\n  installMethod: \"manual_install\",\n  bundleId: \"com.apple.SampleApp\",\n  appVersion: \"1.0\",\n  googleAppId: \"1:21332412389:ios:11681asd2a3cd5d8\"\n)\n\nlet session: Session = .init(\n  firstInteraction: false,\n  firstOpenTime: 1_737_550_800_666,\n  nonPersonalizedAds: false,\n  sessionId: 1_737_555_666,\n  sessionNumber: 2,\n  lifetimeEngagement: 1_175_666,\n  sessionEngagement: 10055,\n  userId: \"user-id\"\n)\n\nlet payload = Payload(\n  value: 1,\n  events: [\n    EventPayload(\n      eventName: \"login\",\n      parameters: [\n        .method: \"Google\",\n        .platform: \"app\",\n      ],\n      previousTimestampMillis: UInt(Date.now.timeIntervalSince1970 * 100),\n      timestampMillis: UInt(Date.now.timeIntervalSince1970 * 100)\n    ),\n    EventPayload(\n      eventName: \"_e\",\n      parameters: [\n        \"_et\": .uint(891),\n        .platform: \"auto\"\n      ],\n      previousTimestampMillis: UInt(Date.now.timeIntervalSince1970 * 100),\n      timestampMillis: UInt(Date.now.timeIntervalSince1970 * 100)\n    ),\n  ],\n  sessionInformations: session.parameters,\n  value4: UInt(Date.now.timeIntervalSince1970 * 100), // upload_timestamp_millis\n  value5: UInt(Date.now.timeIntervalSince1970 * 100), // start_timestamp_millis\n  value6: UInt(Date.now.timeIntervalSince1970 * 100), // end_timestamp_millis\n  value7: UInt(Date.now.timeIntervalSince1970 * 100), // previous_bundle_end_timestamp_millis\n  os: clientInformation.os,\n  osVersion: clientInformation.osVersion,\n  deviceModel: clientInformation.deviceModel,\n  value11: clientInformation.locale,\n  value12: clientInformation.localeId,\n  installMethod: clientInformation.installMethod,\n  bundleId: clientInformation.bundleId,\n  appVersion: clientInformation.appVersion,\n  value17: 110700, // gmp_version\n  value18: 110700, // uploading_gmp_version\n  value21: \"BC75E87831231231B7A179248F24080C\",  // fix // app_instance_id\n  value23: 25,  // count up // bundle_sequential_index\n  googleAppId: clientInformation.googleAppId,\n  value26: UInt(Date.now.timeIntervalSince1970 * 100),  // free // previous_bundle_start_timestamp_millis\n  value27: \"CAIIJF38-E407-4954-BC16-F693A22F9FA9\",  // fix // resettable_device_id\n  value30: \"d4Xw8qsfsadBoMYlsYHnot\",  // fix // firebase_instance_id\n  value31: 1, // app_version_major\n  value35: 1_727_127_969_769_945,  // fix // config_version\n  value45: 42_820_019,  // fix\n  value52: \"G1--\",  // fix // consent_signals\n  value64: \"google_signals\",  // fix\n  value71: \"19911\",  // fix // consent_diagnostics\n  value72: 0,  // fix\n  value77: 13  // count up\n)\n\nlet analytics = Analytics(\n  httpClient: .urlSession(.shared),\n  userAgent: \"SampleApp/1 CFNetwork/3826.400.120 Darwin/24.3.0\",\n  clientInformation: clientInformation,\n  session: session\n)\n\ntry await analytics.log(payload: payload)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Ffirebaseanalytics-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzunda-pixel%2Ffirebaseanalytics-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Ffirebaseanalytics-swift/lists"}