Set up Product Analytics data capture
This page instructs how to set up Product Analytics data capture in combination with Experience Analytics.
-
Configure and start the SDK with
CSQ.start().- Standalone
- Unified CSQ
Onboard to Unified CSQ, our latest, all-in-one platform offering.
Reach out to your Customer Success Manager for more information.
AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(environmentID: "YOUR_ENVIRONMENT_ID")}}AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(dataSourceID: "YOUR_DATASOURCE_ID")}} -
Enable autocapture with
.enableNativeAutocapture = true.- Standalone
- Unified CSQ
Onboard to Unified CSQ, our latest, all-in-one platform offering.
Reach out to your Customer Success Manager for more information.
AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(environmentID: "YOUR_ENVIRONMENT_ID",options: [.enableNativeAutocapture: true])}}AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(dataSourceID: "YOUR_DATASOURCE_ID",options: [.enableNativeAutocapture: true])}} -
(Optional) If your Product Analytics environment is hosted in the EU, set the
baseURLoption to"https://mh.ba.contentsquare.net".- Standalone
- Unified CSQ
Onboard to Unified CSQ, our latest, all-in-one platform offering.
Reach out to your Customer Success Manager for more information.
CSQ.start(environmentID: "YOUR_ENVIRONMENT_ID",options: [.baseURL: "https://mh.ba.contentsquare.net"])CSQ.start(dataSourceID: "YOUR_DATASOURCE_ID",options: [.baseURL: "https://mh.ba.contentsquare.net"]) -
Add
.disablePageviewAutocapture = true.- Standalone
- Unified CSQ
Onboard to Unified CSQ, our latest, all-in-one platform offering.
Reach out to your Customer Success Manager for more information.
AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(environmentID: "YOUR_ENVIRONMENT_ID",options: [.enableNativeAutocapture: true,.disablePageviewAutocapture: true])}}AppDelegate.swift import UIKitimport ContentsquareSDK@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate {var window: UIWindow?func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {// ...CSQ.start(dataSourceID: "YOUR_DATASOURCE_ID",options: [.enableNativeAutocapture: true,.disablePageviewAutocapture: true])}}