Issues Generating Unique Random SubjectIDs on 4.0.9


Issues Generating Unique Random SubjectIDs on 4.0.9

Author
Message
CAlicia
CAlicia
New Member
New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 2
Our mission: We are currently attempting participants, after completing an Inquisit task, to Qualtrics, and have these participants' responses be linked. We want to have Inquisit generate a unique and random subjectID, insert it into the URL that links it to qualtrics (i.e. www.qualtrics.com/xxxxxyyyyzzzz&subjectID=9876, 9876 beign the randomly generated ID), and have qualtrics record that subjectID so that we can keep the responses together. 

We have tried this: 

Sending the Subject ID from Inquisit to 3rd Party Sites

If participants start with the Inquisit session before going to the 3rd party survey site, the subject id can be explicitly included on the finish page url so that it can be used by the 3rd party site. Using the above example, the following finish page would include the unique subject id for each participant:

   http://www.surveysrus.com/coolsurvey/part2.html?subjectid=<%script.subjectid%>

Add the end of each session, Inquisit will substitute "<%script.subjectid%>" with the actual ids for each of the subjects.

Complications: But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives us a constant ("25").

The other way that we've tried, which is just specifying subjectID is a url parameter, sets subjectID as 111111 every time, rather than assigning it randomly and uniquely. 

Our question: how do we successfully get Inquisit to generate a unique URL either using this "<%script.subjectid%>", and/or are there any other methods that we can use? We were thinking of programming in a random number generator BUT we would have no assurance that each random number generated would produce a unique subject ID (i.e. the same number could be generated twice).



Dave
Dave
Supreme Being
Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)Supreme Being (183K reputation)

Group: Administrators
Posts: 7.4K, Visits: 30K
CAlicia - Tuesday, November 29, 2016
Our mission: We are currently attempting participants, after completing an Inquisit task, to Qualtrics, and have these participants' responses be linked. We want to have Inquisit generate a unique and random subjectID, insert it into the URL that links it to qualtrics (i.e. www.qualtrics.com/xxxxxyyyyzzzz&subjectID=9876, 9876 beign the randomly generated ID), and have qualtrics record that subjectID so that we can keep the responses together. 

We have tried this: 

Sending the Subject ID from Inquisit to 3rd Party Sites

If participants start with the Inquisit session before going to the 3rd party survey site, the subject id can be explicitly included on the finish page url so that it can be used by the 3rd party site. Using the above example, the following finish page would include the unique subject id for each participant:

   http://www.surveysrus.com/coolsurvey/part2.html?subjectid=<%script.subjectid%>

Add the end of each session, Inquisit will substitute "<%script.subjectid%>" with the actual ids for each of the subjects.

Complications: But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives us a constant ("25").

The other way that we've tried, which is just specifying subjectID is a url parameter, sets subjectID as 111111 every time, rather than assigning it randomly and uniquely. 

Our question: how do we successfully get Inquisit to generate a unique URL either using this "<%script.subjectid%>", and/or are there any other methods that we can use? We were thinking of programming in a random number generator BUT we would have no assurance that each random number generated would produce a unique subject ID (i.e. the same number could be generated twice).



> Complications: But, it hasn't worked for us -- Qualtrics doesn't recognize the generated %script.subjectid% and Inquisit isn't replacing the scripting with a number. It gives
> us a constant ("25").

If you set up your launch page to generate a random subject id via its settings, that ID is generated when you initially visit the launch page in your browser. To generate a new ID, refresh / reload the launch page in your browser.

CAlicia
CAlicia
New Member
New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)

Group: Awaiting Activation
Posts: 2, Visits: 2
Dave, thanks so much-- that looks like it'll resolve the issue!
GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search