{"id":18622772,"url":"https://github.com/timonus/tjmixpanellogger","last_synced_at":"2025-04-11T03:31:29.824Z","repository":{"id":141729738,"uuid":"572646294","full_name":"timonus/TJMixpanelLogger","owner":"timonus","description":"Bare-bones Obj-C Mixpanel logger","archived":false,"fork":false,"pushed_at":"2025-03-27T13:27:03.000Z","size":117,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T10:04:52.802Z","etag":null,"topics":["logger","mixpanel","objective-c"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timonus.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}},"created_at":"2022-11-30T18:10:08.000Z","updated_at":"2025-03-27T13:27:08.000Z","dependencies_parsed_at":"2024-02-03T05:31:45.328Z","dependency_job_id":"0fcfaac0-2efa-4f12-9a1e-fd623e9b1b03","html_url":"https://github.com/timonus/TJMixpanelLogger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonus%2FTJMixpanelLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonus%2FTJMixpanelLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonus%2FTJMixpanelLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonus%2FTJMixpanelLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timonus","download_url":"https://codeload.github.com/timonus/TJMixpanelLogger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248335441,"owners_count":21086591,"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":["logger","mixpanel","objective-c"],"created_at":"2024-11-07T04:18:33.727Z","updated_at":"2025-04-11T03:31:24.804Z","avatar_url":"https://github.com/timonus.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TJMixpanelLogger\n\n`TJMixpanelLogger` is a bare-bones Objective-C [Mixpanel](https://mixpanel.com) logger. It only provides event logging, not user logging or other features that Mixpanel provides.\n\n## Setup \u0026 Use\n\nTo configure `TJMixpanelLogger`, set its `projectToken` to your Mixpanel project's project token.\n\n```objc\nTJMixpanelLogger.projectToken = @\"your-token-here\";\n```\n\nIf you'd like to use `TJMixpanelLogger` within app extensions, you should also set its `sharedContainerIdentifier` property to an app group identifier.\n\n```objc\nTJMixpanelLogger.sharedContainerIdentifier = @\"an-app-group-identifier\";\n```\n\nTo log an event with `TJMixpanelLogger`, use the `+logEventWithName:properties:` method.\n\n```objc\n[TJMixpanelLogger logEventWithName:@\"photo_shared\"\n                        properties: @{\n    @\"source\": @\"camera\"\n    @\"width\": ...\n}];\n```\n\n## Default Event Properties\n\nEvents logged using `TJMixpanelLogger` automatically capture the following info.\n\n- A base 64 version of `identifierForVendor` as the install identifier.\n- The app version string.\n- The OS version.\n- The device model.\n- The screen dimensions.\n- Coarse IP-based location.\n- The preferred language.\n- For app extensions, the suffix of the extension is included as `bundle_id_suffix`. Apps including extensions will have `bundle_id_suffix=null` for events from the main app.\n\n## Other Notes\n\n- This logger supports app extensions (needed for [Opener](https://apps.apple.com/app/id989565871) and [Checkie](https://apps.apple.com/app/id382356167)).\n- This logger supports watchOS (needed for [Checkie](https://apps.apple.com/app/id382356167)).\n- This logger uses background URL sessions.\n- This is the successor to a custom Google Analytics logger I've been using for a while ([very old source snapshot](https://gist.github.com/timonus/2869183a4442e2e70ff9)).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonus%2Ftjmixpanellogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonus%2Ftjmixpanellogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonus%2Ftjmixpanellogger/lists"}