custom fields from URL?


custom fields from URL?

Author
Message
tcarpenter
tcarpenter
Associate Member
Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 reputation)Associate Member (132 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
Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)Supreme Being (446K reputation)

Group: Administrators
Posts: 9K, Visits: 38K
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


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search