top of page
bottom of page
const SECRET = 'arsana-k7Qx92mPz4Lw'; function clean(s) { s = String(s || '').slice(0, 200); return /^[=+\-@]/.test(s) ? "'" + s : s; } function doPost(e) { try { const d = JSON.parse(e.postData.contents); if (d.k !== SECRET) return ContentService.createTextOutput('no'); SpreadsheetApp.getActive().getSheetByName('Leads').appendRow([ new Date(), clean(d.nama), clean(d.acara), clean(d.region), clean(d.sumber), clean(d.ref), clean(d.halaman), 'First Contact'