# Counterbalancing in online experiments

**URL:** <https://discourse.psychopy.org/t/counterbalancing-in-online-experiments/8129>\
**Category:** Online experiments\
**Tags:** counterbalancing\
**Created:** [June 15, 2019, 2:02pm UTC](https://discourse.psychopy.org/t/counterbalancing-in-online-experiments/8129 "2019-06-15T14:02:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rob-linguistics13](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/rob-linguistics13/32/5558_2.png) [@rob-linguistics13](https://discourse.psychopy.org/u/rob-linguistics13)\
**Post date:** [June 15, 2019, 3:32pm UTC](https://discourse.psychopy.org/t/counterbalancing-in-online-experiments/8129/3 "2019-06-15T15:32:56Z")

</div>

> [@jon](#):
>
> A variable given to PsychoJS in the query string as you’ve done can be accessed during the experiment using
> 
> ```auto
> expInfo['list']
> 
> ```

This also means that I will need to put the field `list` in my `ExpInfo` dictionary, which will appear in my diag box. I would rather not to have subjects mess with that…Could I just create a brand new dictionary just with `list`? e.g.,

> `let listInfo = {'list: ['list1', 'list2']};`

and then refer to in both the URL and in the trialHandler object of my loop:

```auto
...
loopTrial = new TrialHandler({
...
 trialList: listInfo['list']+'.csv',
...
};

```

---

_[View the full topic](https://discourse.psychopy.org/t/counterbalancing-in-online-experiments/8129)._
