Add multiple items to dataset in one user session

I am trying to log user interactions in my Pro-Gallery. I can log the first click with an onItemClicked event, but each subsequent click is not logged. Here is my code for this portion:

$w.onReady(function () {
    $w("#gallery1").onItemClicked( (event) => {
 let itemLink = event.item.link; // "Link"
 let itemIndex = event.itemIndex; // Probably don't need this
            console.log(itemLink);   
 //save login info
        $w("#dataset2").setFieldValue("itemClicked", itemLink)
        $w("#dataset2").save()
        .then( x => {
        console.log( "SAVED", x)}
          )
        .catch( (err) => {
 let errMsg = err} );
    } )

I get a “validation” error (or sometimes no error). Is there a way to use .refresh() or .new() to generate a new item for the second, third, fourth clicks?