Skip to content

Instantly share code, notes, and snippets.

@arijitMondal
Created August 26, 2020 03:47
Show Gist options
  • Save arijitMondal/21bef05801cd244676021b846dfe8949 to your computer and use it in GitHub Desktop.
Save arijitMondal/21bef05801cd244676021b846dfe8949 to your computer and use it in GitHub Desktop.
function createHeaders() {
//Freezes the first row
sheet.setFrozenRows(1);
// Set the values we want for headers
var values = [["Timestamp", "Device","Performance Score","LAB FCP", "LAB LCP", "LAB CLS", "LAB Interactive", "LAB Total Blocking Time", "LAB Speed Index"]];
// Set the range of cells
var range = sheet.getRange(1, 1, 1, 9);
//Call the setValues method on range and pass in our values
range.setValues(values);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment