{"id":21762051,"url":"https://github.com/segment-integrations/analytics-ios-integration-adjust","last_synced_at":"2025-04-13T13:32:39.789Z","repository":{"id":49038905,"uuid":"54794064","full_name":"segment-integrations/analytics-ios-integration-adjust","owner":"segment-integrations","description":"The Adjust analytics-ios integration. https://segment.com/docs/integrations/adjust","archived":false,"fork":false,"pushed_at":"2022-09-29T20:26:39.000Z","size":488,"stargazers_count":0,"open_issues_count":7,"forks_count":18,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-10T19:47:34.968Z","etag":null,"topics":["ios"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/segment-integrations.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-03-26T18:47:12.000Z","updated_at":"2024-05-10T10:33:26.000Z","dependencies_parsed_at":"2022-07-26T06:02:05.379Z","dependency_job_id":null,"html_url":"https://github.com/segment-integrations/analytics-ios-integration-adjust","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-adjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-adjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-adjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segment-integrations%2Fanalytics-ios-integration-adjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segment-integrations","download_url":"https://codeload.github.com/segment-integrations/analytics-ios-integration-adjust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248720986,"owners_count":21151021,"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":["ios"],"created_at":"2024-11-26T12:10:45.698Z","updated_at":"2025-04-13T13:32:39.764Z","avatar_url":"https://github.com/segment-integrations.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics\n\n[![CircleCI](https://circleci.com/gh/segment-integrations/analytics-ios-integration-adjust.svg?style=svg)](https://circleci.com/gh/segment-integrations/analytics-ios-integration-adjust)\n[![Version](https://img.shields.io/cocoapods/v/Segment-Adjust.svg?style=flat)](http://cocoapods.org/pods/Segment-Adjust)\n[![License](https://img.shields.io/cocoapods/l/Segment-Adjust.svg?style=flat)](http://cocoapods.org/pods/Segment-Adjust)\n\nAdjust integration for analytics-ios.\n\n## Installation\n\nTo install the Segment-Adjust integration, simply add this line to your [CocoaPods](http://cocoapods.org) `Podfile`:\n\n```ruby\npod \"Segment-Adjust\"\n```\n\n## Usage\n\nAfter adding the dependency, you must register the integration with our SDK.  To do this, import the Adjust integration in your `AppDelegate`:\n\n```\n#import \u003cSegment-Adjust/SEGAdjustIntegrationFactory.h\u003e\n```\n\nAnd add the following lines:\n\n```\nNSString *const SEGMENT_WRITE_KEY = @\" ... \";\nSEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];\n\n[config use:[SEGAdjustIntegrationFactory instance]];\n\n[SEGAnalytics setupWithConfiguration:config];\n\n```\n\n## IDFA tracking for iOS14\n\n\n1. Add the AppTrackingTransparency.framework - This framework is needed in iOS 14 and later for SDK to be able to wrap user's tracking consent dialog and access to value of the user's consent to be tracked or not.\n2. Add `\"Privacy - Tracking Usage Description\"` to your app Info.plist with a string indicating your intentions for tracking a user's IDFA.\n3. Implement the Adjust SDK App-tracking authorization wrapper, to conveniently and efficiently communicate the new state of consent to the backend. As soon as a user responds to the pop-up dialog, it's then communicated back using your callback method. The SDK will also inform the backend of the user's choice.\n\n```\nAdjust.requestTrackingAuthorizationWithCompletionHandler().then((status) {\n  switch (status) {\n    case 0:\n      // ATTrackingManagerAuthorizationStatusNotDetermined case\n      break;\n    case 1:\n      // ATTrackingManagerAuthorizationStatusRestricted case\n      break;\n    case 2:\n      // ATTrackingManagerAuthorizationStatusDenied case\n      break;\n    case 3:\n      // ATTrackingManagerAuthorizationStatusAuthorized case\n      break;\n  }\n});\n```\n4. Allow Segment to collect the IDFA by implement the `adSupportBlock` as documented in [Segment IDFA Collection documentation.](https://segment.com/docs/connections/sources/catalog/libraries/mobile/ios/#idfa-collection-in-40-beta-and-later)\n\n## License\n\n```\nWWWWWW||WWWWWW\n W W W||W W W\n      ||\n    ( OO )__________\n     /  |           \\\n    /o o|    MIT     \\\n    \\___/||_||__||_|| *\n         || ||  || ||\n        _||_|| _||_||\n       (__|__|(__|__|\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Segment, Inc.\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-ios-integration-adjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegment-integrations%2Fanalytics-ios-integration-adjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegment-integrations%2Fanalytics-ios-integration-adjust/lists"}