Relevant ID
This article will show you how to implement the use of "Relevant ID" into your survey
Background
You may want to use the "Relevant ID" (from Imperium) into your survey. This article will discuss the steps involved. Below is also a link to their website for more details:
http://www.imperium.com/services/relevantid/
Instructions
Before going through these steps, be sure to have the Client ID ready (provided through Imperium).
1. Create a TEXT question and create the following rows (should end up with 34 rows total). This MUST be the first page of the survey.
RVid isNew Score GeoIP Country OldId OldIDDate CompleteFlag CompleteDate ScreenoutFlag ScreenoutDate TotalCompletes CSOPanelistID CSOPanelistIDDate CSOPanelistIDStatus Domain FraudProfileScore FPF1 FPF2 FPF3 FPF4 FPF5 FPF6 FPF7 FPF8 FPF9 FPF10 FPF11 FPF12 FPF13 FPF14 FraudFlagCount RVIDHash2 isMobile
2. Add the following CSS to the question-level CSS.
.cm-response-group { display: none; }
3. Insert the following JavaScript into the Question Text using the Code View and update the following:
- [INSERT CLIENT ID] - Replace this with the Client ID obtained from Imperium
- [INSERT PROJECT NUMBER] - Replace this with the Project ID (the number after prj= in the URL for the project).
- By default, Geolocation will NOT be validated. If this is needed, you will have to add the country code to the GeoCodes input below (so, to validate the respondents are from the US, the GeoCodes line would become <input type="hidden" name="GeoCodes" id="GeoCodes" value="1,US">
<div id="request-params"> <input type="hidden" name="ClientID" id="ClientID"> <input type="hidden" name="PanelistID" id="PanelistID"> <input type="hidden" name="SurveyID" id="SurveyID"> <input type="hidden" name="GeoCodes" id="GeoCodes"> <input type="hidden" name="TimePeriod" id="TimePeriod"> <input type="hidden" name="RVIDCompleted" id="RVIDCompleted" value="0"> <input type="hidden" name="VID" id="VID"> <input type="hidden" name="RequestCSOData" id="RequestCSOData" value="0"> </div> <div id="response-params"> <input type="hidden" name="RVid" id="RVid"> <input type="hidden" name="isNew" id="isNew"> <input type="hidden" name="Score " id="Score"> <input type="hidden" name="GeoIP" id="GeoIP"> <input type="hidden" name="Country" id="Country"> <input type="hidden" name="OldId" id="OldId"> <input type="hidden" name="OldIDDate" id="OldIDDate"> <input type="hidden" name="CompleteFlag" id="CompleteFlag"> <input type="hidden" name="CompleteDate" id="CompleteDate"> <input type="hidden" name="ScreenoutFlag" id="ScreenoutFlag"> <input type="hidden" name="ScreenoutDate" id="ScreenoutDate"> <input type="hidden" name="TotalCompletes" id="TotalCompletes"> <input type="hidden" name="CSOPanelistID" id="CSOPanelistID"> <input type="hidden" name="CSOPanelistIDDate" id="CSOPanelistIDDate"> <input type="hidden" name="CSOPanelistIDStatus" id="CSOPanelistIDStatus"> <input type="hidden" name="Domain" id="Domain"> <input type="hidden" name="FraudProfileScore" id="FraudProfileScore"> <input type="hidden" name="FPF1" id="FPF1"> <input type="hidden" name="FPF2" id="FPF2"> <input type="hidden" name="FPF3" id="FPF3"> <input type="hidden" name="FPF4" id="FPF4"> <input type="hidden" name="FPF5" id="FPF5"> <input type="hidden" name="FPF6" id="FPF6"> <input type="hidden" name="FPF7" id="FPF7"> <input type="hidden" name="FPF8" id="FPF8"> <input type="hidden" name="FPF9" id="FPF9"> <input type="hidden" name="FPF10" id="FPF10"> <input type="hidden" name="FPF11" id="FPF11"> <input type="hidden" name="FPF12" id="FPF12"> <input type="hidden" name="FPF13" id="FPF13"> <input type="hidden" name="FPF14" id="FPF14"> <input type="hidden" name="FraudFlagCount" id="FraudFlagCount"> <input type="hidden" name="RVIDHash2" id="RVIDHash2"> <input type="hidden" name="isMobile" id="isMobile"> </div> <script> var $ = jQuery; var myTimer = setTimeout("RVIDNoResponse();", 8000); function populateInputFields() { document.getElementById('ClientID').value = '[INSERT CLIENT ID]'; document.getElementById('PanelistID').value = '[[RESP_TOKEN]]'; document.getElementById('SurveyID').value = '[INSERT PROJECT NUMBER]'; document.getElementById('RequestCSOData').value = '0'; } function RVIDResponseComplete() { document.getElementById('RVIDCompleted').value = "1"; clearTimeout(myTimer); $("#response-params").find("input").each(function(idx) { var myId = $(this).attr("id"); var myVal = $(this).val(); $(".cm-response-group").find("input").eq(idx).val(myVal); }); $("#cm-NextButton").click(); } function RVIDNoResponse() { if (document.getElementById('RVIDCompleted').value == "0") {} $("#cm-NextButton").click(); } </script> <script type="text/javascript" src="https://d3op16id4dloxg.cloudfront.net/RelevantID4.js"></script> <script> function callRVIDService() { populateInputFields(); callRVIDNow(); } cmSurvey.hideNextButton(true); callRVIDService(); </script>