addData doesnt add values in Pavlovia

URL of experiment:

Description of the problem:
I use a code component at the end of my trial (‘addRotToData’) to add the rotation of an object at the beginning and the end of the routine to the data. Offline it works but it doesnt show up in the pavlovia data.
The code is:
thisExp.addData(‘rotStart’, rotTrialResp)

Does someone know what I’m doing wrong?

I’ve found the problem: The variable ‘rotTrialResp’ referenced was a Variable-Object from the builder.
I’ve removed this variable and instead set it the variable up within a code component. This way Pavlovia is saving it.