Category: Chat
This integration is only available for Web projects
What to expect
This integration will allow you to segment users based on their iAdvize chat interactions and reported experience.
What we collect
Dynamic Variables
Key | Value | Data Type |
CH_IA_Chat Started | {Conversation ID} |
Text
|
CH_IA_Chat Ended | {Conversation ID} |
Text
|
CH_IA_Chat Hidden | true |
Text
|
CH_IA_Chat Button Displayed | true |
Text
|
CH_IA_Call Button Displayed | true |
Text
|
CH_IA_Satisfaction Survey Displayed | true |
Text
|
CH_IA_Satisfaction Survey Answered | true |
Text
|
Artificial Pageviews
In order to have artificial pageviews triggered for these options below, you will need to ask your Contentsquare CSM or Support to enable a feature which will allow these to be sent. Note that these are specifically for usage in the Journey Analysis module of the Contentsquare application.
Trigger | Query String |
Chat Started
|
cs_iadvize=chat_started
|
What we send
Session replay
To properly make use of the replay feature you need to either have 100% collection ratio or ETR (Event Triggered Replay), please talk to your CSM about this.
URL Example: https://app.contentsquare.com/quick-playback/index.html?pid=3771&uu=cc912cdb-ee03-a739-a659-ad2a5b1f08bb&sn=12&pvid=1&recordingType=cs&vd=ia
Implementation
Implementation Steps
There are 2 steps to making this integration work
Step 1
Please go to the section How to request an integration to see the instructions to enable this integration. You can then return here once completed.
If you have already completed the step above then continue below.
Step 2
You will need modify your existing iAdvize Javascript code which loads iAdvize on your site as we will be making use of the iAdvize Javascript Callbacks as well as the Custom Data object to push a replay link.
You may or may not already have these defined so if you do not have any of these defined then simply add it after your iAdvize tag. If you already do use the callbacks then you simply need to add to them and perhaps add some missing callbacks by using this code:
/* *Name: iAdvize CS Integration *Version: 1.0.0 */ function dispatchToCS(event, context) { if (typeof window.CustomEvent === "function") { var evt = new window.CustomEvent("Contentsquare_IA_Integration_Data", { detail: { event: event, context: context, }, }); window.dispatchEvent(evt); } } var intLink = sessionStorage.getItem("_cs_rl_ia"); if (intLink) { if (typeof idzCustomData === "object") { window.idzCustomData.ContentsquareReplay = intLink; } else { window.idzCustomData = { ContentsquareReplay: intLink, }; } } window.iAdvizeCallbacks = window.iAdvizeCallbacks || {}; iAdvizeCallbacks.onChatStarted = function (context) { dispatchToCS("onChatStarted", context); }; iAdvizeCallbacks.onChatEnded = function (context) { dispatchToCS("onChatEnded", context); }; iAdvizeCallbacks.onChatHidden = function (context) { dispatchToCS("onChatHidden", context); }; iAdvizeCallbacks.onChatButtonDisplayed = function (context) { dispatchToCS("onChatButtonDisplayed", context); }; iAdvizeCallbacks.onCallButtonDisplayed = function (context) { dispatchToCS("onCallButtonDisplayed", context); }; iAdvizeCallbacks.onSatisfactionDisplayed = function (context) { dispatchToCS("onSatisfactionDisplayed", context); }; iAdvizeCallbacks.onSatisfactionAnswered = function (context) { dispatchToCS("onSatisfactionAnswered", context); }; //iAdvize CS Integration End
Verifying it works
You can use the chrome extension to check the results are sent to CS
Users who were selected for collecting would also show a session replay link in iAdvize chats here: