0 votes
in SoSci Survey (dt.) by s063041 (140 points)

Hi there,

I’m trying to automatically retrieve the Prolific ID from the survey URL and store it in my data, but I’m having trouble getting it to work. Here’s what I’ve done so far:

  1. Create a study link on Prolific: https://www.soscisurvey.de/studyname/?PROLIFIC_PID={{%PROLIFIC_PID%}}&STUDY_ID={{%STUDY_ID%}}&SESSION_ID={{%SESSION_ID%}}&q=qnr2

  2. Use PHP code:
    if (!isset($id)) {
    $id = readGET('PROLIFIC_PID');
    registerVariable($id);

My question: Do I also need to specify a variable name such as "PROLIFIC_PID" under Post/GetVariable and do I have to tick boxes for "javaScript" or "AdBlocker"?

Thank you so much for your help!

1 Answer

0 votes
by SoSci Survey (327k points)

I recommend not to use PHP code, but only a question "device and transmitted variables" instead. Place this question on the first page.

do I have to tick boxes for "javaScript" or "AdBlocker"?

No, except if you want to know if the respondents have JavaScript or an AdBlocker enabled.

Willkommen im Online-Support von SoSci Survey.

Hier bekommen Sie schnelle und fundierte Antworten von anderen Projektleitern und direkt von SoSci Survey.

→ Eine Frage stellen


Welcome to the SoSci Survey online support.

Simply ask a question to quickly get answers from other professionals, and directly from SoSci Survey.

→ Ask a Question

...