<commit_before># Segment-Tune

[![CI Status](http://img.shields.io/travis/<NAME>/Segment-Tune.svg?style=flat)](https://travis-ci.org/<NAME>/Segment-Tune)
[![Version](https://img.shields.io/cocoapods/v/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)
[![License](https://img.shields.io/cocoapods/l/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)
[![Platform](https://img.shields.io/cocoapods/p/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)

## Setup

Use the TuneIntegration factory when initializing Segment in your application:

```
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"SEGMENT_WRITE_KEY"];
[config use:[SEGTuneIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
```

## Usage

### Installs and App Opens

Measuring installs with TUNE is automatically wired into this integration, so you don't need to worry about adding anything for that.

To measure app opens from deeplinks, add the following to your `AppDelegate`:

```
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {<commit_msg>Remove CI status from README<commit_after># Segment-Tune

[![Version](https://img.shields.io/cocoapods/v/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)
[![License](https://img.shields.io/cocoapods/l/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)
[![Platform](https://img.shields.io/cocoapods/p/Segment-Tune.svg?style=flat)](http://cocoapods.org/pods/Segment-Tune)

## Setup

Use the TuneIntegration factory when initializing Segment in your application:

```
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"SEGMENT_WRITE_KEY"];
[config use:[SEGTuneIntegrationFactory instance]];
[SEGAnalytics setupWithConfiguration:config];
```

## Usage

### Installs and App Opens

Measuring installs with TUNE is automatically wired into this integration, so you don't need to worry about adding anything for that.

To measure app opens from deeplinks, add the following to your `AppDelegate`:

```
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {
{'fraction_non_alphanumeric': 0.1479367866549605, 'fraction_numerical': 0.0, 'mean_word_length': 6.778156996587031, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3326947', 'n_tokens_mistral': 794, 'n_tokens_neox': 738, 'n_words': 146}