Suggestion - adding more URL query parameters


Author
Message
thv
thv
thv
posted 6 Years Ago HOT
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 23, Visits: 73
Hello,
As far as I know, inquisit can only pass two url query parameters into the script (for subjectid and groupid) (at least according to this; https://www.millisecond.com/forums/Topic21508.aspx)
I tend to do tasks using Turk Prime that start in inquisit and then go to qualtrics.

Turk Prime has nice features for checking the random end of survey codes are correct, but this only works if you can add several other query parameters in the URL when it starts inquisit, and then pass these to Qualtrics.
(According to this: http://blog.turkprime.com/2015/05/qualtrics-surveys-with-turkprime.html?__hstc=214931602.d47e589da0120bd6273c8068e98b63cd.1534531867274.1534531867274.1534531867274.1&__hssc=214931602.3.1534531867275&__hsfp=4162248785)

Just wanted to confirm that there is no way to do this, and suggest that it might be useful to add in recording of additional query parameters in the future.

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: 98K
thv - Friday, August 17, 2018
Hello,
As far as I know, inquisit can only pass two url query parameters into the script (for subjectid and groupid) (at least according to this; https://www.millisecond.com/forums/Topic21508.aspx)
I tend to do tasks using Turk Prime that start in inquisit and then go to qualtrics.

Turk Prime has nice features for checking the random end of survey codes are correct, but this only works if you can add several other query parameters in the URL when it starts inquisit, and then pass these to Qualtrics.
(According to this: http://blog.turkprime.com/2015/05/qualtrics-surveys-with-turkprime.html?__hstc=214931602.d47e589da0120bd6273c8068e98b63cd.1534531867274.1534531867274.1534531867274.1&__hssc=214931602.3.1534531867275&__hsfp=4162248785)

Just wanted to confirm that there is no way to do this, and suggest that it might be useful to add in recording of additional query parameters in the future.

Thanks!

As a general matter, *all* query parameters you pass *in* to the Inquisit launch page will automatically be preserved and automatically forwarded to the outgoing url. It is only the case the the *script* itself can "know" or make use of at most *two* of these query parameters (read one in as subject id, possibly use another one as group id).

So, if you have Turk Prime pass 5 query parameters to Inquisit Web, then all those 5 would be preserved and forwarded to Qualtrics.

Edited 6 Years Ago by Dave
thv
thv
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 23, Visits: 73
Oh that's amazing! Thanks!!!
thv
thv
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 23, Visits: 73
thv - Friday, August 17, 2018
Oh that's amazing! Thanks!!!

Hi again,
I tried it out and I am not able to get it to work. 
In inquisit I have (for example - links to do not work);
https://mili2nd.co/MYTASK?workerId=test4&hitId=test4&assignmentId=test4

I set as the finishpage (inside the inquisit script):
http://rotman.az1.qualtrics.com/jfe/form/MYSURVEY?subjectid=<%script.subjectid%>&groupid=<%script.groupid%>

I created embedded field data things to hold workerId, hitId and assignmentId in qualtircs.
However my qualtrics survey when I open it then only has subjectid and groupid in the url.

Any thoughts?
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: 98K
+x
thv - Friday, August 17, 2018
+x
thv - Friday, August 17, 2018
Oh that's amazing! Thanks!!!

Hi again,
I tried it out and I am not able to get it to work. 
In inquisit I have (for example - links to do not work);
https://mili2nd.co/MYTASK?workerId=test4&hitId=test4&assignmentId=test4

I set as the finishpage (inside the inquisit script):
http://rotman.az1.qualtrics.com/jfe/form/MYSURVEY?subjectid=<%script.subjectid%>&groupid=<%script.groupid%>

I created embedded field data things to hold workerId, hitId and assignmentId in qualtircs.
However my qualtrics survey when I open it then only has subjectid and groupid in the url.

Any thoughts?
Thanks!

If you set the finishpage in the script, that will (and is intended to) override things. You should avoid setting the finish page in the script if you wish to preserve incoming query parameters. Instead you would just specify

http://rotman.az1.qualtrics.com/jfe/form/MYSURVEY

as the URL to redirect to in the web experiment's settings dialog (not the script). Then, with

?workerId=test4&hitId=test4&assignmentId=test4

coming *in* to the Inquisit start page, it will end up redirecting to

http://rotman.az1.qualtrics.com/jfe/form/MYSURVEY?workerId=test4&hitId=test4&assignmentId=test4

which should be what you want.


thv
thv
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 23, Visits: 73
That makes sense, though the reason I did the finish page within inquisit was that I sometimes ran into the same issue as this person in the link below with the subject id getting passed weirdly to qualtrics when I didn't do it within the script.
I might be able to adjust my qualtrics survey in this case to make it work the way you said, but occasionally I do also want to pass information from within the script - e.g. group they were assigned to, so if possible it would be nice to do both.

https://www.millisecond.com/forums/Topic25169.aspx

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: 98K
thv - Friday, August 17, 2018
That makes sense, though the reason I did the finish page within inquisit was that I sometimes ran into the same issue as this person in the link below with the subject id getting passed weirdly to qualtrics when I didn't do it within the script.
I might be able to adjust my qualtrics survey in this case to make it work the way you said, but occasionally I do also want to pass information from within the script - e.g. group they were assigned to, so if possible it would be nice to do both.

https://www.millisecond.com/forums/Topic25169.aspx

Thanks!

The only times I've ever seen the issue in the linked thread is when starting with Inquisit, i.e. no query parameters coming in in the first place, so this should not be a problem when you pass through query parameters Turk Prime -> Inquisit Web -> Qualtrics like here.

It is indeed *not* possible to do "both" in the sense preserving an arbitrary amount of query parameters AND have the script add more. The script only knows about one or two of the original query parameters, so that's all it can work with to construct an outgoing link.

thv
thv
Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)Esteemed Member (1.9K reputation)
Group: Forum Members
Posts: 23, Visits: 73
Ok thank you, I'll try work with that and hopefully don't run into any issues!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search