- Create a new HIT on MTurk and, in the Design Layout section, switch to source code mode.
- In the place where you want your survey link to appear, enter the following script:
<div id="myelementLink" style="display: inline; font-family: Verdana;"><tt>URL not shown because there is an error with Javascript on your computer. To perform this HIT, you must have Javascript and cookies enabled on your browser.</tt></div><script type="text/javascript" language="JavaScript"><!--var assignment_id_field = document.getElementById('myelementLink');var paramstr = window.location.search.substring(1);var parampairs = paramstr.split("&");var mturkworkerID = "";for (i in parampairs) {var pair = parampairs[i].split("=");if (pair[0] == "workerId")mturkworkerID = pair[1];}if (mturkworkerID == "" ) {assignment_id_field.innerHTML = '<tt>The link will appear here only if you accept this HIT.</tt>';} else {assignment_id_field.innerHTML = '<a target="_blank" href="https://YOUR_QUALTRICS_SURVEY_URL_GOES_HERE&MID=' + mturkworkerID + '"><h1><span style="color: rgb(255, 0, 0);"><span style="font-family: Courier New;"><b>CLICK HERE TO TAKE THE SURVEY!</b></span></span></h1></a>';}// --></script><div class="link" id="linkDiv"> </div>
- Replace the survey url in the code (where it says "YOUR_QUALTRICS_SURVEY_URL_GOES_HERE") with your survey url. (make sure there is no space between the survey url and the code that follows it).
- Switch back to regular edit mode. You will see, where the survey link should be displayed, a message that says "URL not shown because there is an error with JavaScript on your computer...". This is normal. Don't worry.
- Move to the Preview and Finish mode. Now the error message should be replaced by "The link will appear here only if you accept this HIT.". This is how your workers will view the HIT (if the error message still appears, you did something wrong and it won't work).
- In your Qualtrics survey, add an embedded data element in your survey called MID, and set it to be populated from the survey url. This will store each worker's ID in your survey data.
- Publish your survey through your HIT and collect your data!
Note on asking workers to accept your HIT beforehand: Some workers object to accepting a HIT beforehand. The method above requires it. What I do to appease workers is add some text that says "We have to ask you to accept this HIT because we need to verify that you have not completed this survey before. According to MTurk support, accepting and then returning HITs does not affect your account or your eligibility to complete other HITs."
In some case, I also add the full survey url (without the script) so workers who really object to accepting HITs beforehand can use it. This, of course, will defeat your original goal so it's up to you whether you want to do it or not. From my experience (and also some data I collected), HITs that use the above method show similar response rates to those that do not. In the past, I used to get some complaints from workers, but these died out in the recent months so maybe workers are getting used to this type of request.
Best of luck in your research!
Hi Eyal,
ReplyDeleteThank you for sharing this information. Can you type the code out without the box? The formatting comes out differently when I copy and paste it to MTurk, which may be why I'm getting an error.
see here - https://dl.dropboxusercontent.com/u/3863544/files%20to%20keep/appending%20ID%20script.txt
ReplyDeleteHey Eyal - I I recently joined Qualtrics from Amazon and built a wizard that automates some of the steps required to tie a Qualtrics survey to MTurk.
ReplyDeleteCheck it out, let me know what you think, interested in your feedback.
http://www.qualtrics.com/innovation-exchange/mturk/
jhyde@qualtrics.com
TurkPrime.com has this and more features to exclude specific workers, create qualifications and just launched Qualtrics integration.
DeleteSee here
Hi, can you disqualify a worker based on a screening question at the very beginning of the survey and thus not pay them? For example, if you are interested in a population of women only, can you askin about the gender as the first question of the survey and terminate the survey if the respondent is a man and thus only pay women who can complete the survry?
ReplyDeleteYou can do that using qualifications on mturk - http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMechanicalTurkRequester/Concepts_QualificationsArticle.html
DeleteHi Eyal, thank you so much for such a useful post! I have pasted your code to the MTurk design layout source section, however, although I get the "URL not shown because there is an error with Javascript on your computer. To perform this HIT, you must have Javascript and cookies enabled on your browser." message, I cannot finish editing the project. The MTurk keeps saying "Unable to update your project" and "HTML question (Layout) must contain a question". I would really appreciate it if you could teach me where I went wrong! :)
ReplyDeleteHi, This code seems to not work anymore. I used to use it all the time, but now I can't seem to get #5 to work properly. I keep getting the same "URL not shown because there is an error with JavaScript on your computer..."
ReplyDeleteIs there an updated code?
I am also having the same problem. =(
DeleteIndeed there is. Here is the js snippet of how I got the workerID:
Deletevar current_url = new URL(window.location.href);
var workerID = current_url.searchParams.get("workerId");
console.log("The worker ID is: " + workerID);
Once you have it as a variable the rest should fall in place. (Note that you won't be given a workerId in the preview window, but you can use the sandbox to play around with it.)
This might not help you specifically, but perhaps others that see this =)
Has anyone gotten this to work? I don't know where in the code to put the snippet that Unknown gave us above.
DeleteHow can I embed the hitid into the survey code too?
ReplyDeleteThere's a potential TYPO in the script. https://YOUR_QUALTRICS_SURVEY_URL_GOES_HERE&MID= may need to be https://YOUR_QUALTRICS_SURVEY_URL_GOES_HERE?MID=
ReplyDeleteThe "?" attaches embedded data variables, which MID will be. "&" attaches more than one embedded variable (say you had url.com?MID=2&Mood=Happy). So, if you already have embedded variables in your URL, then use the "&" to also attach MID, otherwise, use "?"
Thank you for sharing this it's very useful! However I couldn't found this as a solution in the discussion form for requesters in amazon mTurk. There are other proposed solution in the forum, but I found this much easier :)
ReplyDeleteI have noticed that only MID works for me in this example. The random code that should appear to workers it doesn't. For the code I refer to this example here that was inspired by your work (https://research-it.wharton.upenn.edu/news/capture-mturk-workers-ids-qualtrics-survey/)
ReplyDeleteI don't know what is the problem but after submitting the study to workers, a lot of them were complaining that they didn't get any code..
https://bayanlarsitesi.com/
ReplyDeleteManisa
Denizli
Malatya
Çankırı
0XU
Denizli
ReplyDeleteAnkara
Antep
Bursa
Eskişehir
VA7
Kocaeli
ReplyDeleteDenizli
Bartın
Kocaeli
Adana
LHEZA
van
ReplyDeletekastamonu
elazığ
tokat
sakarya
AJE
whatsapp görüntülü show
ReplyDeleteücretli.show
İ83ZS
görüntülü show
ReplyDeleteücretlishow
İTURS
https://titandijital.com.tr/
ReplyDeletemanisa parça eşya taşıma
balıkesir parça eşya taşıma
eskişehir parça eşya taşıma
ardahan parça eşya taşıma
FJZZFM
77B9C
ReplyDeleteDiyarbakır Lojistik
Ankara Parça Eşya Taşıma
Uşak Parça Eşya Taşıma
Kocaeli Lojistik
Osmaniye Parça Eşya Taşıma
F500C
ReplyDeleteNiğde Şehir İçi Nakliyat
Osmaniye Parça Eşya Taşıma
Adana Lojistik
Çerkezköy Asma Tavan
AAX Güvenilir mi
Mardin Parça Eşya Taşıma
Maraş Parça Eşya Taşıma
Meta Coin Hangi Borsada
Ergo Coin Hangi Borsada
FFD4B
ReplyDeleteçorum görüntülü sohbet canlı
canlı sohbet odası
karabük sesli sohbet siteler
kocaeli sohbet muhabbet
tekirdağ ücretsiz görüntülü sohbet uygulamaları
nevşehir ucretsiz sohbet
osmaniye yabancı sohbet
düzce sesli görüntülü sohbet
tunceli görüntülü sohbet
5F201
ReplyDeleteSivas Görüntülü Sohbet Siteleri
mersin görüntülü sohbet uygulama
Mardin Sesli Sohbet Uygulamaları
görüntülü sohbet kızlarla
kastamonu yabancı sohbet
Batman Random Görüntülü Sohbet
Rize Sesli Sohbet
aksaray ücretsiz sohbet siteleri
bursa bedava görüntülü sohbet
6126D
ReplyDeleterastgele sohbet
zonguldak sohbet sitesi
ucretsiz sohbet
Burdur Bedava Sohbet Chat Odaları
Afyon Sesli Sohbet Odası
Kastamonu Sesli Mobil Sohbet
Adıyaman Sohbet
kastamonu parasız sohbet
kırklareli canli sohbet bedava
9263A
ReplyDeleteordu kadınlarla görüntülü sohbet
adana ücretsiz sohbet odaları
erzurum sesli sohbet uygulamaları
ordu canlı sohbet ücretsiz
Ankara Bedava Görüntülü Sohbet Sitesi
Ağrı Kadınlarla Ücretsiz Sohbet
kırklareli rastgele sohbet odaları
tekirdağ ücretsiz görüntülü sohbet
Kars Rastgele Görüntülü Sohbet Uygulaması
798D1
ReplyDeletesamsun en iyi ücretsiz sohbet siteleri
karaman sohbet siteleri
rize sesli sohbet uygulamaları
bursa görüntülü sohbet sitesi
canlı görüntülü sohbet siteleri
mersin sohbet chat
ısparta Mobil Sohbet Sitesi
Rize Görüntülü Sohbet Ücretsiz
düzce seslı sohbet sıtelerı
FC9BE
ReplyDeletePinterest Takipçi Hilesi
Bitcoin Nasıl Oynanır
Twitter Takipçi Satın Al
Apenft Coin Hangi Borsada
Star Atlas Coin Hangi Borsada
Jns Coin Hangi Borsada
Binance Hesap Açma
Kripto Para Madenciliği Nedir
Bitcoin Nasıl Alınır
B8FB0
ReplyDeletePinterest Takipçi Hilesi
Kripto Para Kazanma
Binance Kimin
Tumblr Beğeni Satın Al
Bitcoin Kazanma
Periscope Takipçi Satın Al
Paribu Borsası Güvenilir mi
Coin Para Kazanma
Kripto Para Nasıl Çıkarılır
99684
ReplyDeleteBitcoin Oynama
Expanse Coin Hangi Borsada
Bitcoin Nasıl Alınır
Dxy Coin Hangi Borsada
Parasız Görüntülü Sohbet
Bitcoin Kazanma Siteleri
Soundcloud Beğeni Hilesi
Parasız Görüntülü Sohbet
Twitter Beğeni Hilesi
F7AF0
ReplyDeleteKripto Para Kazma
Youtube Abone Hilesi
Binance Madencilik Nasıl Yapılır
Youtube İzlenme Hilesi
Facebook Beğeni Hilesi
Periscope Takipçi Satın Al
Kripto Para Çıkarma
Kwai Takipçi Satın Al
Binance Madenciliği Nedir
gvdrgdrfhgfhhhhg
ReplyDeleteشركة مكافحة مكافحة بالهفوف
FYRTDHYUI
ReplyDeleteشركة مكافحة النمل الابيض بالاحساء
شركة عزل اسطح بالاحساء
ReplyDeleteL8GexFOI
شركة عزل اسطح بالقطيف
mjYgWyhhp
شركة عزل اسطح بالدمام
nrzP6YMI
شركة عزل اسطح بالجبيل
tzMl8LCO4
شركة صيانة خزانات M6m9fW9X8q
ReplyDeleteشركة عزل اسطح بالقطيف iodQFAYl9Q
ReplyDeleteعزل اسطح بالجبيل iwRkSOtQgU
ReplyDeleteشركة مكافحة حشرات بالهفوف FUTQRQTFRJ
ReplyDeleteشركة صيانة خزانات O0nWCl2WZC
ReplyDeleteReally insightful! Thanks for breaking this down.
ReplyDeleteAdobe Photoshop Download
SuperAntiSpyWare Pro
PC Helpsoft Driver"
شركة مكافحة الفئران بالدمام S3XJIKemqU
ReplyDelete