📊 GOOGLE SHEETS SETUP GUIDE
Auto-Sync Leads to Google Sheets
Automatically append every Facebook Lead Ad, Webflow, and Framer submission as a new row in Google Sheets in 0.2 seconds. Zero Zapier monthly fees.
1
Open Google Sheet & Apps Script
Open any Google Sheet in your Google account → Click Extensions from the top menu bar → Select Apps Script.
2
Paste the LeadChirp 5-Line Apps Script
Delete any default text in the Apps Script editor, paste the enriched script below, and click Save (floppy disk icon).
📍 Note: This script automatically formats your sheet headers (dark background, emerald text) and sets up a Lead Status column!
function doPost(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
// Bulletproof header check: if row 1 is empty or missing headers, insert them
if (sheet.getLastRow() === 0 || sheet.getRange(1, 1).getValue() !== 'Timestamp') {
var headers = ['Timestamp', 'Lead Name', 'Email Address', 'Phone Number', 'Lead Source', 'Message / Inquiry', 'Lead Status', 'Notes'];
sheet.insertRowBefore(1);
var range = sheet.getRange(1, 1, 1, headers.length);
range.setValues([headers]);
range.setBackground('#07080a').setFontColor('#00f59b').setFontWeight('bold');
sheet.setFrozenRows(1);
}
var data = JSON.parse(e.postData.contents);
sheet.appendRow([
new Date(),
data.name || 'N/A',
data.email || 'N/A',
data.phone || 'N/A',
data.source || 'LeadChirp Webhook',
data.message || 'N/A',
'🆕 New Lead',
''
]);
return ContentService.createTextOutput(JSON.stringify({ result: 'success' }))
.setMimeType(ContentService.MimeType.JSON);
}
3
Deploy as Web App (Crucial Settings)
- Click Deploy (top right) → Select New Deployment.
- Click gear icon ⚙️ next to Select type → Choose Web App.
- Set Execute as:
Me - Set Who has access:
Anyone - Click Deploy → Authorize access → Copy your Web App URL (e.g.
https://script.google.com/macros/s/.../exec).
4
Save Web App URL in LeadChirp Dashboard
Go to your LeadChirp Workspace Portal (/dashboard.html), paste your Web App URL into the Google Sheets Destination box, and click Save!
🚀 Try Test Google Sheets Sync Now →