In-app features
In addition to its tracking functionalities, the SDKs incorporate certain features tailored for Contentsquare users, including Snapshot Capture and SDK Logs.
Implement in-app features (iOS Only)
Section titled Implement in-app features (iOS Only)In order to allow Contentsquare users to enable in-app features:
1. Add the custom URL scheme in your app Info
Section titled 1. Add the custom URL scheme in your app InfoFor in-app features to function, your app needs to be accessible via a custom URL scheme. This can be achieved by implementing ONE of the following approaches:
Using Xcode
Section titled Using Xcode- Open your project settings
- Select the app target
- Select the
Info
settings - Scroll to
URL Types
- Set the URL scheme to
cs-$(PRODUCT_BUNDLE_IDENTIFIER)
Or using a Text editor
Section titled Or using a Text editor-
Open the
Info.plist
of your project -
Add the following snippet:
2. Call the SDK when the app is launched via a deeplink
Section titled 2. Call the SDK when the app is launched via a deeplinkIn ios/Runner/AppDelegate.swift
, add a new method to the AppDelegate
class:
Here is what your AppDelegate
class should look like after adding the in-app features:
Enable in-app features
Section titled Enable in-app featuresIn-app features can be enabled in different ways:
Scan the QR Code
Section titled Scan the QR CodeIf 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 methods
Section titled Alternative methodsWe provide alternative methods to enable in-app features especially for iOS Simulator and Android Emulator.
Follow the Native Android SDK documentation for Enable in-app features
Follow the Native iOS SDK documentation for Enable in-app features
Debugging and Logging
Section titled Debugging and LoggingContentsquare provides Logging capabilities that allow you to see the raw event data logged by your app. Use this when 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.
Snapshot Capture
Section titled Snapshot CaptureIn order to unlock the full data-visualization capabilities of Contentsquare, the SDK provides a way to capture snapshots of your app screens. These snapshots can only be taken by Contentsquare’s users on their device. They are not captured from your end-users device. It means your Personal Data is safe, as long as you use a test user account.
Follow the Native Android SDK documentation for Snapshot Capture
Follow the Native iOS SDK documentation for Snapshot Capture
Known limitations
Section titled Known limitations- In debug mode, snapshots are not reliable and may differ from those taken in release mode. For accurate and consistent results, use snapshots from release mode.