Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Integration/URL parameter Issue (Prolific/Qualtrics/JATOS)

I am having an issue with saving my URL parameters while moving across platforms.

I am able to move from Prolific to Qualtrics while maintaining my "PROLIFIC_PID" in the URL.

In Qualtrics, I set this as "embedded data"

and then redirect to my JATOS study link calling the embedded data:

Within my js code, I use var PROLIFIC_PID = jatos.urlQueryParameters.PROLIFIC_PID  to then get the PID. I do this in all html files (I have a "welcome" component that then moves to a different component based on the condition a worker is assigned, similar to the randomize_between_workers example).

However, when I run tests of the study through Prolific, the welcome page of the first component

a. does not have the URL parameters within the URL and

b. shows a console error: TypeError: undefined is not an object (evaluating 'jatos.urlQueryParameters.PROLIFIC_PID')

When I remove this from my first component's html file, the task runs as expected, but when I redirect to qualtrics (end redirect URL: https://affiliation.co1.qualtrics.com/jfe/form/mysurvey?PROLIFIC_PID=[PROLIFIC_PID] the resulting URL says the PROLIFIC_PID is undefined (https://brown.co1.qualtrics.com/jfe/form/SV_5yCDb4XUZvxFuHY?PROLIFIC_PID=undefined)


I am assuming that the embedded data and custom hyperlink made in Qualtrics during the first redirect is somehow not being sent to or read in by JATOS. Would love some help on this!

Comments

  • Hi,

    I don't have experience with Qualtrics, so it's a bit difficult to answer the question.

    First, just to check (though from what you described I'm fairly sure this is the case) that the problem is not in your code but in passing the query parameters between Qualtrics and JATOS.

    If you open the Developer Tools in your browser, put a breakpoint somewhere at the very beginning, and ask in the console for the contents of jatos.urlQueryParameters you'll be able to see what go transferred from Qualtrics. If it's the case that the information is not there, you're going to have to change something in Qualtrics.

    You could also check if the problem is in Qualtrics sending any query parameter, or just the variable one you specified. Try to hard-code any given value of PROLIFIC-ID in Qualtrics and see if that gets correctly sent.

    If the problem is indeed in Qualtrics, we probably won't be able to help much more than that, sorry.

    Hope this helps

    Elisa

  • SOLVED!

    All of these steps work when linking prolific -> Qualtrics -> Jatos study -> Qualtrics -> prolific if you add

    the jatos.urlQueryParameters command within your jatos.onLoad function


    This is what I have:

    jatos.onLoad(function () {
            initBatchConditions();
            $('#continueButton').prop('disabled', false);
            jatos.addAbortButton();
            var PROLIFIC_PID = jatos.urlQueryParameters.PROLIFIC_PID;
            console.log("this is the prolific PID:", PROLIFIC_PID)
        });
    


    Everything now works as expected/desired! Thank you @elisa for your help!

  • hi,

    I have the following problem and I think you guys could help me.

    So I use the jatos.urlqueryparameters code for retrieving an ID from qualtrics, but the ID that I try to retrieve from the URL is not saved in the Jatos results. When I check, during running the study in Jatos, if I can retrieve the jatos.urlqueryparameters in my browser window, I can weirdly find the right ID. So how is it possible Jatos doesn't save the ID in the results (the space {} stays blank (url: {}). What is the full code you guys would use in your lab.js script? thank you in advance.

    Kind regards

    Mrockster

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games