Google Sheets Integration Setup

Complete guide to setting up cross-device task tracking using Google Sheets as your database.


What You'll Have When Done

Total Setup Time: 10-15 minutes (one-time setup)


Step 1: Create Your Google Sheet (3 minutes)

  1. Go to: Google Sheets
  2. Click: + Blank spreadsheet
  3. Name it: "Wandering Lantern - Launch Tasks"

Add Column Headers (Row 1):

In the first row, type these exactly:

A B C D
Task Week Date Completed

Add Your First Task (Row 2):

A B C D
Instagram: Construction photo "23 days" 1 Nov 4 FALSE

Add More Tasks:

Continue adding all your tasks from the week-by-week plan. Format:

Share Your Sheet:

  1. Click Share button (top right)
  2. Change to: Anyone with the linkViewer
  3. Click Copy link
  4. Click Done

Get Your Sheet ID:

Your sheet URL looks like this:

https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit

Copy the part between /d/ and /edit - that's your Sheet ID:

1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms

Save this ID - you'll need it in Step 3.


Step 2: Deploy Google Apps Script (5 minutes)

This script allows the dashboard to UPDATE your Sheet (not just read it).

2.1: Open Apps Script

  1. In your Google Sheet, go to: ExtensionsApps Script
  2. You'll see a blank script called "Code.gs"

2.2: Replace the Code

  1. Delete the default code (function myFunction() { ... })
  2. Open the file google-apps-script.js (in this folder)
  3. Copy ALL the code from that file
  4. Paste it into the Apps Script editor
  5. Click the save icon (disk icon) or Cmd+S

2.3: Deploy as Web App

  1. Click DeployNew deployment
  2. Click the gear icon ⚙️ next to "Select type"
  3. Choose Web app
  4. Fill in these settings:
  5. Click Deploy
  6. Click Authorize access
  7. Choose your Google account
  8. Click Advanced (if you see a warning)
  9. Click Go to Launch Dashboard API (unsafe) - this is YOUR script, it's safe
  10. Click Allow

2.4: Copy Your Web App URL

After deployment, you'll see:

Web app URL: https://script.google.com/macros/s/AKfycbz.../exec

Copy this entire URL - you'll need it in Step 3.


Step 3: Connect the Dashboard (2 minutes)

3.1: Open the POC

  1. Open the file: launch-dashboard/poc-sheets.html
  2. Double-click or right-click → Open With → Chrome/Safari

3.2: Enter Your Configuration

Fill in the three fields:

Google Sheet ID:

(Paste the ID you copied in Step 1)

Sheet Name (tab):

Week1

(Or whatever you named your first tab - default is "Sheet1" if you didn't rename it)

Apps Script URL:

(Paste the Web App URL you copied in Step 2.4)

3.3: Connect!

Click the "📊 Connect to Sheet" button.

You should see:

✓ Connected! Loaded 5 tasks from Sheet (with write access)

3.4: Test It!

  1. Check one of the checkboxes
  2. You should see: "✓ Saved to Google Sheet! (Row 1 updated)"
  3. Go back to your Google Sheet
  4. Refresh the page
  5. Column D should now show TRUE for that task!

Step 4: Use Across Devices (1 minute)

The POC page (poc-sheets.html) is just an HTML file. You can:

Option A: Email It

  1. Email poc-sheets.html to yourself
  2. Open it on your phone/tablet
  3. Enter the same Sheet ID and Apps Script URL
  4. Click "Connect to Sheet"
  5. Done! Both devices now sync to the same Sheet

Option B: Host It (Recommended)

  1. Upload poc-sheets.html to your website
  2. Visit the URL on any device
  3. Bookmark it on all devices
  4. Always up to date!

Option C: Use Google Drive

  1. Upload poc-sheets.html to Google Drive
  2. Share the file with yourself
  3. Open on any device via Drive app

Troubleshooting

"Error loading Sheet - make sure it's shared publicly"

"Connected but checkbox changes don't save to Sheet"

"Checkboxes update but don't persist across devices"

"Row numbers are wrong in the Sheet"

Apps Script Authorization Issues


Next Steps

Once the POC works:

1. Add All Your Tasks

Go to your Google Sheet and add all 47 tasks from your launch plan:

2. Create Tabs for Each Week (Optional)

Instead of one long list, create tabs:

Then switch between weeks in the dashboard by changing the "Sheet Name" field.

3. Integrate Into Main Dashboard

Once you're happy with the POC, we can integrate it into the full dashboard with:

4. Customize the Interface

The POC is intentionally simple. We can add:


How It Works (Technical Details)

Reading from Google Sheet

Writing to Google Sheet

Security


Alternative: Read-Only Mode

If you don't want to set up write capability yet, you can use read-only mode:

  1. Skip Step 2 (Apps Script)
  2. In Step 3, leave "Apps Script URL" blank
  3. Click "Connect to Sheet"
  4. Dashboard will load tasks from Sheet
  5. Checkbox changes save to browser localStorage (per-device)
  6. Manually update the Sheet when you complete tasks

This is useful for:


Demo Mode (No Sheet Needed)

Want to see how it works before setting anything up?

  1. Open poc-sheets.html
  2. Click "🎯 Load Demo"
  3. 5 sample tasks appear
  4. Check/uncheck boxes (saves to browser localStorage)
  5. No Sheet connection needed

Perfect for testing the interface!


Questions?

If you get stuck or want to customize this setup, let me know:

Common requests:


Ready to try it? Start with Step 1! 🚀