Contentsquare for Mobile SDK

Follow the instructions in this topic to integrate the Digital mobile SDK with Contentsquare for Apps and view recorded sessions from an application-selected feedback response.

Note: The steps in this topic assume that Digital SDK as well as Contentsquare SDK are already integrated into your application. For full integration instructions, contact your Medallia expert.

Adding custom parameters

The Digital Mobile SDK enables your app to set custom parameters from a dedicated API. The Contentsquare session link will be shared using this API. To set custom parameters, complete the following steps:

  1. In Digital, go to Custom Parameters located in the menu on the left side of the page. Then click Add New.

    Adding a custom parameter.

  2. Enter information in the fields (as follows), then click Save.
    • Parameter Name — Free text (e.g., 'Contentsquare Session URL').

    • Parameter Type — Select Text from the dropdown.

    • Origin Type — Automatically selected.

    • Origin Name — Free text (e.g., 'Contentsquare Session URL').

    • Attach Forms — Select applicable surveys or All Surveys.

    Adding a new custom parameter.

iOS/Android project

To set up an iOS or Android project, complete the following steps:

  1. Retrieve the Contentesquare session link using the contentsquareDidSessionURLCreated function.

  2. Call the Medallia setCustomParameter API with the selected parameter name (e.g., 'Contentsquare Session URL') and the retrieved session link.

The Contentsquare session URL will be sent to the Medallia backend and displayed in the Inbox in Digital Feedback in case of a feedback event.

iOS code example

func contentsquareDidSessionURLCreated(_ sessionLink: String!) {
 MedalliaDigital.setCustomParameter(name: "Contentsquare Session URL", value: sessionLink)
}            

Android code example

Kotlin

override fun onSessionURLCreated(sessionLink: String) {
      MedalliaDigital.setCustomParameter("Contentsquare Session URL", sessionLink)
} 

Java

@Override
public void onSessionURLCreated(String sessionLink) {
 MedalliaDigital.setCustomParameter("Contentsquare Session URL", sessionLink);
}            

High-level flowchart

High-level flowchart.

Inbox

View the recorded session for submitted feedback via the Digital SDK in the inbox, which contains the Contentsquare session URL.