https://github.com/segment-integrations/analytics-ios-integration-comscore
The ComScore analytics-ios integration. https://segment.com/docs/integrations/comscore
https://github.com/segment-integrations/analytics-ios-integration-comscore
ios
Last synced: about 1 year ago
JSON representation
The ComScore analytics-ios integration. https://segment.com/docs/integrations/comscore
- Host: GitHub
- URL: https://github.com/segment-integrations/analytics-ios-integration-comscore
- Owner: segment-integrations
- License: mit
- Created: 2016-05-13T03:52:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-02-17T21:05:55.000Z (over 4 years ago)
- Last Synced: 2024-04-25T23:21:48.479Z (about 2 years ago)
- Topics: ios
- Language: Objective-C
- Size: 11 MB
- Stars: 4
- Watchers: 28
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# analytics-ios-integration-comscore
[](https://circleci.com/gh/segment-integrations/analytics-ios-integration-comscore)
[](http://cocoapods.org/pods/Segment-ComScore)
[](http://cocoapods.org/pods/Segment-ComScore)
[](http://cocoapods.org/pods/Segment-ComScore)
## NOTE
This integration needs special care when building with anything lower than Xcode 12 due to the ComScore SDK.
When using Xcode 11 or lower, you will need to add the following as the first line of your `[CP] Embed Pods Frameworks` phase:
```
export ARCHS="$(ARCHS_STANDARD)"
```
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
To install the Segment-ComScore integration, simply add this line to your [CocoaPods](http://cocoapods.org) `Podfile`:
```ruby
pod "Segment-ComScore"
```
## Usage
After adding the dependency, you must register the integration with our SDK. To do this, import the ComScore integration in your `AppDelegate`:
```
#import
```
And add the following lines:
```
NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];
[config use:[SEGComScoreIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
```
## License
Segment-ComScore is available under the MIT license. See the LICENSE file for more info.