# Participant ID not saving in data file name

**URL:** <https://discourse.psychopy.org/t/participant-id-not-saving-in-data-file-name/30623>\
**Category:** Online experiments\
**Created:** [August 30, 2022, 7:21pm UTC](https://discourse.psychopy.org/t/participant-id-not-saving-in-data-file-name/30623 "2022-08-30T19:21:05Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![young1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/young1/32/7428_2.png) [@young1](https://discourse.psychopy.org/u/young1)\
**Post date:** [September 16, 2022, 8:17pm UTC](https://discourse.psychopy.org/t/participant-id-not-saving-in-data-file-name/30623/9 "2022-09-16T20:17:55Z")

</div>

Seems like a quick manual fix on js files would solve the issue:

// add info from the URL first:  
util.addInfoFromUrl(expInfo);

// then add filename to psychojs experiment  
psychoJS.experiment.dataFileName = ((“.” + “/”) + `data/${expInfo["participant"]}_${expName}_${expInfo["date"]}`);

I confirm that file saves well with URL params this way. I tested with recent psychopy version 2022.1.2

---

_[View the full topic](https://discourse.psychopy.org/t/participant-id-not-saving-in-data-file-name/30623)._
