import wixLocation from 'wix-location';
import wixData from 'wix-data';
let userGCLID; //The global variable for this user's session.
$w.onReady(function(){
//Get the query Params from the current URL.
userGCLID = wixLocation.query['gclid'];
});
//The handler for the submission.
export function submitToDatabase(){
wixData.insert("GCLIDDatabase",{"firstName":"Test", "gclid":userGCLID})
}