Skip to content

What is the easiest way to capture participant ID from a url and save to the .csv? #737

Answered by jodeleeuw
Cluster-Bomb asked this question in Q&A
Discussion options

You must be logged in to vote

jsPsych.data.addProperties() will do what you are looking for.

var subject_id = jsPsych.data.getURLVariable('PROLIFIC_PID');
jsPsych.data.addProperties({
	subject_id: subject_id
});

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@kupiqu
Comment options

@jodeleeuw
Comment options

@kupiqu
Comment options

@jodeleeuw
Comment options

@kupiqu
Comment options

Answer selected by jodeleeuw
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants