In-app features

Alongside its tracking capabilities, the SDKs embed some features aimed at Contentsquare users such as SDK Logs.

1. Install the Cordova plugin to handle URL schemes

Section titled 1. Install the Cordova plugin to handle URL schemes

In order for your application to open when you scan the QR code or enter the URL we provide in a web browser, you have to install a Cordova plugin which will handle the URL scheme.

cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=cs-{package-id}
// Example:
// my package id is 'com.mycompany.myapp'
// cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=cs-com.mycompany.myapp

2. Call the SDK when your app is opened with the custom URL

Section titled 2. Call the SDK when your app is opened with the custom URL

Then, you will need to link your app with our SDK. When your application is started via a deeplink, a specific global JavaScript function, handleOpenURL(), is automatically called in your App. You will have to define this function in the ‘window’ global scope and you will need to call a function of our API via the Contentsquare Cordova Plugin.

window.handleOpenURL = function (url) {
console.log("received url: " + url);
ContentsquarePlugin.handleURL(url);
}

In-app features can be enabled in different ways:

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.

We provide alternative methods to enable in-app features especially for iOS Simulator and Android Emulator.

📚 Native Android SDK documentation for Enable in-app features
📚 Native iOS SDK documentation for Enable in-app features

Contentsquare provides Logging capabilities that allow you to see the raw event data logged by your app. Use this 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.

📚 Native Android SDK documentation for Debugging and Logging
📚 Native iOS SDK documentation for Debugging and Logging