Analytics Swift Quantcast Plugin
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:
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.
Open your Package.swift file and add the following to your the dependencies section:
1.package(2name: "Segment",3url: "https://github.com/segment-integrations/analytics-swift-integration-quantcast.git",4from: "1.0.0"5),
Open the file where you setup and configure the Analytics-Swift library. Add this plugin to the list of imports.
1import Segment2import 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.
1let analytics = Analytics(configuration: Configuration(writeKey: "<YOUR WRITE KEY>")2.flushAt(3)3.trackApplicationLifecycleEvents(true))4analytics.add(plugin: QuantcastDestination())
Your events will now be given Adobe session data and start flowing to Adobe in Cloud Mode.