Alongside its tracking capabilities, the SDKs embed some features aimed at Contentsquare users such as SDK Logs.
Implement in-app featuresSection titled Implement in-app features
To allow Contentsquare users to enable in-app features, perform these tasks:
1. Add the custom URL scheme in your app InfoSection titled 1. Add the custom URL scheme in your app Info
You have to allow your app to be opened via a custom URL scheme which can be done using one of the following methods:
XcodeSection titled Xcode
- Open your project settings
- Select the app target
- Select the
- Scroll to
- Set the URL scheme to
Text editorSection titled Text editor
Info.plistof your project
Add the following snippet:
2. Call the SDK when the app is launched via a deeplinkSection titled 2. Call the SDK when the app is launched via a deeplink
Depending of the project, there are multiple ways to handle the deeplink opening. Choose the method matching your project structure:
AppDelegate class, complete or implement the function
application(app, open url:, options:) with:
WindowSceneDelegate class, you need to:
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)with:
Complete or implement
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>)with:
body of your main App struct, add the
onOpenURL modifier and call the
Contentsquare SDK to handle the URL:
Enable in-app featuresSection titled Enable in-app features
In-app features can be enabled in different ways:
Scan the QR CodeSection titled Scan the QR Code
If you have access to the Contentsquare platform, you can open the in-app features modal from the menu and scan the QR code displayed with your phone.
Take a look at the native documentation for further information.
Alternative methodsSection titled Alternative methods
We provide alternative methods to enable in-app features especially for iOS Simulator and Android Emulator.
Debugging and LoggingSection titled Debugging and Logging
Contentsquare provides Logging capabilities that allow you to see the raw event data logged by your app. This is very useful for validation purposes during the instrumentation phase of development and can help you discover errors and mistakes in your analytics implementation and confirm that all events are being logged correctly.