Extract data from url link


Author
Message
wuaham
wuaham
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: 25, Visits: 121
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





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: 12K, Visits: 95K
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.

wuaham
wuaham
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: 25, Visits: 121
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).
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: 12K, Visits: 95K
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.


wuaham
wuaham
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: 25, Visits: 121
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. 
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search