{"id":21762086,"url":"https://github.com/segment-integrations/analytics-swift-mixpanel","last_synced_at":"2025-04-13T13:32:46.131Z","repository":{"id":142649281,"uuid":"465434397","full_name":"segment-integrations/analytics-swift-mixpanel","owner":"segment-integrations","description":"Analytics-Swift Mixpanel Destination Plugin","archived":false,"fork":false,"pushed_at":"2024-08-05T18:30:09.000Z","size":38,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T04:33:27.621Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":false,"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/segment-integrations.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-03-02T19:01:36.000Z","updated_at":"2024-08-05T18:30:13.000Z","dependencies_parsed_at":"2023-11-28T18:26:54.290Z","dependency_job_id":"cd16eed9-4390-4851-8483-6dceb52fd55c","html_url":"https://github.com/segment-integrations/analytics-swift-mixpanel","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"segment-integrations/analytics-swift-destination-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-swift-mixpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-swift-mixpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-swift-mixpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-swift-mixpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segment-integrations","download_url":"https://codeload.github.com/segment-integrations/analytics-swift-mixpanel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721092,"owners_count":21151045,"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":[],"created_at":"2024-11-26T12:10:53.472Z","updated_at":"2025-04-13T13:32:46.102Z","avatar_url":"https://github.com/segment-integrations.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics-Swift Mixpanel\n\nAdd `Mixpanel` device mode support to your applications via this plugin for [Analytics-Swift](https://github.com/segmentio/analytics-swift)\n\n⚠️ **Github Issues disabled in this repository** ⚠️\n\nPlease direct all issues, bug reports, and feature enhancements to `friends@segment.com` so they can be resolved as efficiently as possible. \n\n## Adding the dependency\n\n***Note:** the `Mixpanel` library itself will be installed as an additional dependency.*\n\n### via Xcode\nIn the Xcode `File` menu, click `Add Packages`.  You'll see a dialog where you can search for Swift packages.  In the search field, enter the URL to this repo.\n\n```\nhttps://github.com/segment-integrations/analytics-swift-mixpanel\n```\n\nYou'll then have the option to pin to a version, or specific branch, as well as which project in your workspace to add it to.  Once you've made your selections, click the `Add Package` button.  \n\n### via Package.swift\n\nOpen your Package.swift file and add the following do your the `dependencies` section:\n\n```\n.package(\n            name: \"Segment\",\n            url: \"https://github.com/segment-integrations/analytics-swift-mixpanel.git\",\n            from: \"1.1.3\"\n        ),\n```\n\n\n*Note the Mixpanel library itself will be installed as an additional dependency.*\n\n\n## Using the Plugin in your App\n\nOpen the file where you setup and configure the Analytics-Swift library.  Add this plugin to the list of imports.\n\n```\nimport Segment\nimport SegmentMixpanel // \u003c-- Add this line\n```\n\nJust under your Analytics-Swift library setup, call `analytics.add(plugin: ...)` to add an instance of the plugin to the Analytics timeline.\n\n```\nlet analytics = Analytics(configuration: Configuration(writeKey: \"\u003cYOUR WRITE KEY\u003e\")\n                    .flushAt(3)\n                    .trackApplicationLifecycleEvents(true))\nanalytics.add(plugin: MixpanelDestination())\n```\n\nYour events will now begin to flow to Mixpanel in device mode.\n\n\n## Support\n\nPlease use Github issues, Pull Requests, or feel free to reach out to our [support team](https://segment.com/help/).\n\n## Integrating with Segment\n\nInterested in integrating your service with us? Check out our [Partners page](https://segment.com/partners/) for more details.\n\n## License\n```\nMIT License\n\nCopyright (c) 2021 Segment\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-integrations%2Fanalytics-swift-mixpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegment-integrations%2Fanalytics-swift-mixpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-integrations%2Fanalytics-swift-mixpanel/lists"}