---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/mobile/apple/destination-plugins/quantcast-swift#article
headline: Analytics Swift Quantcast Plugin
description: Add the Quantcast destination plugin to your Analytics-Swift app to send events to Quantcast in cloud mode using Swift Package Manager.
url: https://www.twilio.com/docs/segment/connections/sources/catalog/libraries/mobile/apple/destination-plugins/quantcast-swift
inLanguage: en
dateModified: 2026-06-10T17:20:06.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Analytics Swift Quantcast Plugin

Add Quantcast support to your Analytics-Swift app with this destination plugin. Install the dependency, then add the plugin to your Analytics timeline.

## Adding the dependency

### Using Xcode

In 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 the following repo:

```text
https://github.com/segment-integrations/analytics-swift-integration-quantcast
```

You'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.

### Using Package.swift

Open your Package.swift file and add the following to your the `dependencies` section:

```text
.package(
            name: "Segment",
            url: "https://github.com/segment-integrations/analytics-swift-integration-quantcast.git",
            from: "1.0.0"
        ),
```

## Using the plugin in your app

Open the file where you setup and configure the Analytics-Swift library. Add this plugin to the list of imports.

```text
import Segment
import SegmentQuantcast // <-- Add this line
```

Under your Analytics-Swift library setup, call `analytics.add(plugin: ...)` to add an instance of the plugin to the Analytics timeline.

```text
let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KEY>")
                    .flushAt(3)
                    .trackApplicationLifecycleEvents(true))
analytics.add(plugin: QuantcastDestination())
```

Your events will now start flowing to Quantcast in cloud mode.
