custom fields from URL?


Author
Message
tcarpenter
tcarpenter
Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)Respected Member (338 reputation)
Group: Forum Members
Posts: 2, Visits: 8
Hello, 

I'm curious if it's possible to add custom data fields from url? For example, if someone was going to take the same task twice, could I do something with the URL such as adding an "order" variable (coded 1 or 2) that could be saved with the data somehow?

https://research.millisecond.com/myaccount/myscript.web?subjectid=1&groupid=1234&order=1

Thanks
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
tcarpenter - Wednesday, July 18, 2018
Hello, 

I'm curious if it's possible to add custom data fields from url? For example, if someone was going to take the same task twice, could I do something with the URL such as adding an "order" variable (coded 1 or 2) that could be saved with the data somehow?

https://research.millisecond.com/myaccount/myscript.web?subjectid=1&groupid=1234&order=1

Thanks

The script can generally only take in at most two query parameters and store them in its data file: one for the subject ID, another one for the group ID. The script would not have any awareness of additional query parameters beyond that. However,
(1) The full URL, including all query parameters (here: order in addition to subjectid and groupid) should be captured in the participant logs. You should be able to download the logs and merge the relevant information with the script's data file during data preparation using your preferred data analysis application.
(2) All incoming query parameters would also be preserved when you redirect to some other site after the experiment. If you were to redirect to a site under your control, you could also capture the information of interest there and then merge that with the remaining data.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search