Millisecond Forums

Extract data from url link

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

By wuaham - 7/6/2023

Hello good afternoon:

I am developing an experiment (in Inquisit 6) that will run after completion of a Survey in Qualtrics. Qualtrics will pass me some parameters via URL link. I can extract "subjectid" (Settings->Participant ids) from the link and it works fine. How can I extract the values of other parameters from the link (for example, Qualtrics passed ?subjectid=123&gender="Male"&some_code="abcd" via the URL, how can I catch all these values in Inquisit please)?

I noticed that Inquisit can redirect (via Settings->Finished page) multiple parameters to third party survey, can Inquisit receive/extract multiple parameters values?

 Any help would be appreciated.

Thanks




By Dave - 7/6/2023

wuaham - 7/6/2023
Hello good afternoon:

I am developing an experiment (in Inquisit 6) that will run after completion of a Survey in Qualtrics. Qualtrics will pass me some parameters via URL link. I can extract "subjectid" (Settings->Participant ids) from the link and it works fine. How can I extract the values of other parameters from the link (for example, Qualtrics passed ?subjectid=123&gender="Male"&some_code="abcd" via the URL, how can I catch all these values in Inquisit please)?

I noticed that Inquisit can redirect (via Settings->Finished page) multiple parameters to third party survey, can Inquisit receive/extract multiple parameters values?

 Any help would be appreciated.

Thanks





An Inquisit script can learn of at most three URL parameters:
- One used as the subject ID.
- One used as the group number.
- One used as the session number.

A script has no way of accessing or learning about any other URL parameters.

The full URL parameter string will, however, be captured in the participant logs, assuming you have that logging enabled in your web experiment's settings.
By wuaham - 7/6/2023

Dave - 7/6/2023
wuaham - 7/6/2023
Hello good afternoon:

I am developing an experiment (in Inquisit 6) that will run after completion of a Survey in Qualtrics. Qualtrics will pass me some parameters via URL link. I can extract "subjectid" (Settings->Participant ids) from the link and it works fine. How can I extract the values of other parameters from the link (for example, Qualtrics passed ?subjectid=123&gender="Male"&some_code="abcd" via the URL, how can I catch all these values in Inquisit please)?

I noticed that Inquisit can redirect (via Settings->Finished page) multiple parameters to third party survey, can Inquisit receive/extract multiple parameters values?

 Any help would be appreciated.

Thanks





An Inquisit script can learn of at most three URL parameters:
- One used as the subject ID.
- One used as the group number.
- One used as the session number.

A script has no way of accessing or learning about any other URL parameters.

The full URL parameter string will, however, be captured in the participant logs, assuming you have that logging enabled in your web experiment's settings.

Thank you very much - Dave. You are a star! I believe three parameters via url would be fine (or will bundle them in Qualtrics). I will explore on how to access Participants log (logging is enabled in web) or save this information into Inquisit data (just for checking).
By Dave - 7/6/2023

wuaham - 7/6/2023
Dave - 7/6/2023
wuaham - 7/6/2023
Hello good afternoon:

I am developing an experiment (in Inquisit 6) that will run after completion of a Survey in Qualtrics. Qualtrics will pass me some parameters via URL link. I can extract "subjectid" (Settings->Participant ids) from the link and it works fine. How can I extract the values of other parameters from the link (for example, Qualtrics passed ?subjectid=123&gender="Male"&some_code="abcd" via the URL, how can I catch all these values in Inquisit please)?

I noticed that Inquisit can redirect (via Settings->Finished page) multiple parameters to third party survey, can Inquisit receive/extract multiple parameters values?

 Any help would be appreciated.

Thanks





An Inquisit script can learn of at most three URL parameters:
- One used as the subject ID.
- One used as the group number.
- One used as the session number.

A script has no way of accessing or learning about any other URL parameters.

The full URL parameter string will, however, be captured in the participant logs, assuming you have that logging enabled in your web experiment's settings.

Thank you very much - Dave. You are a star! I believe three parameters via url would be fine (or will bundle them in Qualtrics). I will explore on how to access Participants log (logging is enabled in web) or save this information into Inquisit data (just for checking).

Participant logs are available under "Logs" in your account



or you can go to the relevant logs directly via the respective experiment's Actions menu.



Download the logs as CSV via


(Either of the two files will work, the "All Events" file contains more details.)

There's a column called LaunchQuery in those files, which should hold the full query string.

By wuaham - 7/10/2023

Dave - 7/6/2023
wuaham - 7/6/2023
Dave - 7/6/2023
wuaham - 7/6/2023
Hello good afternoon:

I am developing an experiment (in Inquisit 6) that will run after completion of a Survey in Qualtrics. Qualtrics will pass me some parameters via URL link. I can extract "subjectid" (Settings->Participant ids) from the link and it works fine. How can I extract the values of other parameters from the link (for example, Qualtrics passed ?subjectid=123&gender="Male"&some_code="abcd" via the URL, how can I catch all these values in Inquisit please)?

I noticed that Inquisit can redirect (via Settings->Finished page) multiple parameters to third party survey, can Inquisit receive/extract multiple parameters values?

 Any help would be appreciated.

Thanks





An Inquisit script can learn of at most three URL parameters:
- One used as the subject ID.
- One used as the group number.
- One used as the session number.

A script has no way of accessing or learning about any other URL parameters.

The full URL parameter string will, however, be captured in the participant logs, assuming you have that logging enabled in your web experiment's settings.

Thank you very much - Dave. You are a star! I believe three parameters via url would be fine (or will bundle them in Qualtrics). I will explore on how to access Participants log (logging is enabled in web) or save this information into Inquisit data (just for checking).

Participant logs are available under "Logs" in your account



or you can go to the relevant logs directly via the respective experiment's Actions menu.



Download the logs as CSV via


(Either of the two files will work, the "All Events" file contains more details.)

There's a column called LaunchQuery in those files, which should hold the full query string.


Thank you very much - that's really helpful.