Millisecond Forums

Assigning Group Number via URL

https://forums.millisecond.com/Topic19410.aspx

By smb - 7/19/2016

Hi,

I am running a study in which different conditions withing the batch are associated with different time points of completion (i.e. Time 1 vs Time 2 measurement). Thus, I don't want to randomly assign people to different groups, but I am also weary about relying on participants to enter in their own group number correctly. Is there a way to assign the group number via URL to linked with the study?

Thanks!
By Dave - 7/19/2016

Yes, that's absolutely possible. In your web experiment's settings, select the 'URL parameter' option under "Choose how the group id should be determined:". All you need to specify is the name of the parameter (you can pick it freely in this case). For the sake of example, let's call the parameter 'condition'.

https://www.millisecond.com/forums/uploads/images/24d8692d-1eb8-4efd-8e07-2ea3.png

Suppose you have two timepoints / conditions as in:

<batch>
/ subjects = (1 of 2)
/ groupassignment = groupnumber
/ file = "timepoint_1.iqx"
...
</batch>

<batch>
/ subjects = (2 of 2)
/ groupassignment = groupnumber
/ file = "timepoint_2.iqx"
...
</batch>

With the query parameter set up in the settings, the URL

https://research.millisecond.com/yourusername/yourexperimentname.web?condition=1

would run the 1st condition (timepoint_1.iqx, ...), while

https://research.millisecond.com/yourusername/yourexperimentname.web?condition=2

would run the 2nd condition (timepoint_2.iqx, ...).

This can be extended to however many conditions / timepoints you need.
By smb - 7/19/2016

Thanks so much, Dave. This was very helpful!