access participants' browser info

PennController for IBEX Forums Support access participants' browser info

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6702
    aliona
    Participant

    Dear Jeremy,
    I was wondering whether there’s a possibility for me to see which browser participants used for my experiment. Apparently, there’s a problem of loading the resources (images) from Imgur and I wanted to see whether that can be browser specific as I know that e.g., on Safari the position of the images in my experiment gets all messed up.

    Thank you in advance,
    Aliona

    #6703
    Jeremy
    Keymaster

    Dear Aliona,

    Each submission in the results file starts with these lines:

    # Results on Friday February 26 2021 14:31:11 UTC
    # USER AGENT: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:85.0) Gecko/20100101 Firefox/85.0

    As you can see, in this case, the submission came from a participant (me) who used Firefox. This is not 100% reliable, but there is no method that is 100% reliable when it comes to determining the browser’s identity

    Jeremy

    #6709
    aliona
    Participant

    Dear Jeremy,

    thanks for getting back to me!
    I was hoping I could use those lines too, but in some cases several browsers are listed and I wasn’t sure how to interpret that.

    `USER AGENT: Mozilla/xx (xxxxxxxxx) xxxxxx (xxxxxxxx) Chrome/xxxxxxx Safari/xxxxxxx Edg/xxxxxxx

    I guess this is then the case of the info not being 100% reliable.

    Best,
    Aliona

    #6712
    Jeremy
    Keymaster

    Dear Aliona,

    The line you report most likely corresponds to Edge (although you should probably see an extra ‘e’ at “Edg/xxxxxxx”): http://useragentstring.com/index.php?id=19970

    Jeremy

    #6713
    aliona
    Participant

    Oh, I see! Thanks a lot for the link!

    Best,
    Aliona

    #6952
    elena-vsg
    Participant

    Hi Jeremy,

    I have a somewhat related question: my experiment does not render properly in Safari and I would like to exclude participants using Safari from my study. Is there a way to implement a browser test?

    Thank you!

    #6953
    Jeremy
    Keymaster

    Hi,

    Yes, you can do something like this for example:

    Sequence("block", "intro", randomize("experiment"))
    
    if (navigator.vendor.match(/apple/i))
        newTrial( "block" ,
            newText("<p>We're sorry, but this experiment is not compatible with your browser.</p>").print()
            ,
            newText("<p>We encourage you to revisit this experiment \
                        using a desktop or laptop version of Chrome or Firefox if possible.</p>").print()
            ,
            newText("<p>Thank you for your understanding.</p>").print()
            ,
            newButton().wait()
        )

    Note that filtering participants after recruiting them is against some recruitment platforms’ policy, such as Prolific’s (last time I checked)

    Jeremy

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.