Details
Integration Type | Dynamic Variable Prefix |
Voice of customer | FB_IZ_ |
To properly make use of the replay feature you need to either have 100% recording ratio or ETR (Event Triggered Recordings), please talk to your CSM about this.
Implementation
There are 2 steps to enabling this integration:
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
The code below should be merged with your existing Informizely tag code.
Please do not copy paste it as is as you could overwrite what you have already.
Here are some points to consider:
- In your Informizely tag you probably have window.IzWidget = window.IzWidget || {} defined already and so please wrap that with the code below as you see it. If it doesn’t exist then you can simply create it with that code.
- You may also already have this function defined IzWidget['insitez.ready'] = function (api). If not then please define it as you see below. If you do have it then add the inner code into your existing function and make sure api is defined in the function arguments or you will need to modify the code to whatever you called api.
- Please note that api.set("custom can should be combined with any others that are in the existing code else the last call to this API will override the first call. So if you are already using that set custom API then you need to tweak the code to combine it into one. If not then you will not see a replay link as the other call to it will win over it.
- You may already have a similar tracker like this defined already window.IzWidget['tracker'] = csInformizelyTracker. If so then simply add the code you see below into yours and make sure event, surveyId, surveyName, data, api arguments are defined too. If you do not have a tracker defined then simply use the tracker in the code as is. You can rename the tracker to whatever you like as long as both references to it as changed as you see in the code.
The important thing to note is that you need to merge the code below with the code you have.
/* *Name: Informizely CS Integration *Version: 1.8 */ (function () { window.IzWidget = window.IzWidget || {}; IzWidget["insitez.ready"] = function (api) { window.addEventListener( "Contentsquare_IN_Integration_ReplayLink", function (e) { if (e && e.detail && e.detail.replayLink) { api.set("custom", { ContentsquareReplay: e.detail.replayLink, }); } }, false ); var evt; if (typeof window.Event === "function") { evt = new window.Event("Contentsquare_IN_Integration_Launch"); } else { evt = document.createEvent("Event"); evt.initEvent("Contentsquare_IN_Integration_Launch", true, true); } window.dispatchEvent(evt); }; function csInformizelyTracker(event, surveyId, surveyName, data, api) { if (typeof window.CustomEvent === "function") { var evt = new window.CustomEvent("Contentsquare_IN_Integration_Data", { detail: { event: event, surveyId: surveyId, surveyName: surveyName, data: data, api: api, }, }); window.dispatchEvent(evt); } } window.IzWidget["tracker"] = csInformizelyTracker; })(); //Informizely CS Integration End
Verifying it works
You can check that the data is being sent by using the Chrome extension, it should look like the below:
This shows that an artificial pageview was sent when the feedback was presented and also a dynamic variable was sent with the feedback details.
This shows that an artificial pageview was sent when the feedback was submitted and also a dynamic variable was sent with the feedback details.
It includes the ratings selected and other options in the survey.

In Contentsquare you can find these variables by searching like this:

If you are using the replay feature then you should see the ContentsquareReplay link in the survey responses in your Informizely account.

Dynamic Variable Possibilities
Var Key | Var Type |
FB_IZ_Feedback Displayed
|
Text
|
FB_IZ_Feedback Submitted
|
Text
|
FB_IZ_SurveyID : QuestionText
|
Text or Number
|
FB_IZ_SurveyID : NPS QuestionText
|
Number
|
Artificial Pageview Possibilities
Feedback Displayed | Feedback Submitted |
Feedback Displayed
|
cs_informizely=feedback_displayed_surveyId |
Feedback Submitted
|
cs_informizely=feedback_submitted_surveyId
|