Daily Leadfeeder website visitor log to Google Sheets

By General Input

Every morning at 7am, append yesterday's identified company visitors from Leadfeeder into a running Google Sheet you can pivot and chart in any BI tool.

Integrations

  • Leadfeeder
  • Google Sheets

Type

Deterministic Code

Categories

  • Sales
  • Operations

Build a code workflow that logs yesterday's Leadfeeder website visitors into a Google Sheet every morning so I have a running, dated history every other dashboard and BI tool can pivot against.

Trigger: cron, every day at 7:00am in my local timezone.

Step 1. Compute yesterday's date in YYYY-MM-DD.

Step 2. Call Leadfeeder's List Leads action for my account with start_date and end_date both set to yesterday. Paginate using page[number] starting at 1 with page[size]=100, incrementing page[number] until the returned data array is shorter than 100. Collect every lead across all pages into one in-memory array.

Step 3. If the array is empty, end the workflow with no writes. Do not append a blank row.

Step 4. Map each lead to a row with these columns in this order: visit_date, company_name, domain, country, industry, employee_count, lead_score, page_count, session_count, top_pages, referrer, assigned_to. Use yesterday's date for visit_date. Pull the other fields from the lead's attributes (top_pages is a comma-joined string of the lead's top page paths). If a field is missing on a lead, leave that cell blank.

Step 5. Call Google Sheets Append Values exactly once with the full batch of rows onto a designated tab in a designated spreadsheet. Use valueInputOption USER_ENTERED so dates and numbers parse correctly. One append per run, never one row at a time.

Inputs to expose at the top of the workflow: Leadfeeder account ID, target spreadsheet ID, target tab name, and an optional Leadfeeder custom_feed_id to scope the visitor list to a saved feed. The destination tab should already have a header row matching the column order above.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageLet support send one-off Loops emails without an engineerStop cold emails to anyone with a live deal in PipedriveiMessage campaign console with pre-flight checks and delivery boardLinkedIn Ads budget pacing dashboard for every client accountFront desk appointment confirmation board for the next 3 daysGive your team Looker numbers without buying more seatsBuild audience segments from product usage and push to LoopsTurn the people who engage with your posts into Pipedrive leads