Skip to content

Google Sheets Integration ​

Google Sheets Integration (Pro) shows a Google Sheet as a table on your site. When you change the sheet, the table follows, so you keep editing in Google Sheets and never copy data by hand.

How the table keeps up with the sheet depends on the engine you pick when you create it:

FooTableDataTables
How rows are readFetched live from the published sheetCopied into your database, then synced on a schedule
How often it updatesAfter the Caching interval (5 minutes by default)On the Auto sync schedule, or when you click Sync now
Links and images in cellsKeptNot kept (plain text only)
Best forSmall and medium sheets, sheets with links or imagesLarge sheets with thousands of rows

DataTables is the default (recommended). Pick FooTable if your sheet has links or images in cells. See Choose a table engine for more about the two engines.

No Google sign-in

Ninja Tables does not connect to your Google account. There is no sign-in, no permission screen and no API key. It reads a sheet that you have published to the web, so anyone with the link can read it. Do not publish a sheet that holds private data.

Step 1: Publish your sheet ​

Ninja Tables reads sheets that are published to the web.

  1. In Google Sheets, open File › Share › Publish to web.
  2. On the Link tab, pick the sheet (tab) you want, for example Sheet1.
  3. Choose Comma-separated values (.csv).
  4. Under Published content and settings, make sure Automatically republish when changes are made is ticked.
  5. Click Publish, then copy the link.

Step 2: Create the table ​

  1. Go to Create Table and, under Connect live data, click Google Sheets.
  2. Enter a Table name.
  3. Paste the link you copied into Google Sheet CSV URL. The link must start with https://.
  4. Choose a Sync Interval (Every 1 hour by default). You can change it any time.
  5. Check the engine line. DataTables (recommended) copies the sheet into your database and keeps it in sync. Click Change and pick FooTable if you need links or images from the sheet. If the drawer has no engine line, your Pro plugin is out of date: update it to get DataTables sync. On FooTable the URL field is called Data source URL and there is no Sync Interval.
  6. Click Next.
  7. Under Select entry fields, tick the columns you want in the table, or use Select all.
  8. Click Create table.

Ninja Tables opens the new table on the Table Rows tab with your sheet's data in it. The rows are read-only: edit them in Google Sheets.

If Ninja Tables finds no columns, it says "No columns found. Use the link from File → Share → Publish to web." Check that the sheet is published and that you pasted the published link, not the address of the editor page.

Change the sheet or the columns ​

On FooTable ​

On the Table Rows tab, the banner reads Rows come from Google Sheet. Click Source settings. In the drawer:

  1. Change the Source URL if needed.
  2. Click Fetch columns to read the sheet's columns again.
  3. Tick the columns under Select entry fields.
  4. Click Update.

On DataTables ​

The Table Rows tab shows a sync panel with the column list, the URL, the Auto sync schedule, Sync now and the result of the last sync. See Google Sheets & CSV auto sync.

How fast changes show up ​

  • Google's delay: after you edit a published sheet, Google can take about 5 minutes to republish it.
  • FooTable: Ninja Tables keeps the fetched sheet for the Caching interval (in minutes) in Table Configuration › Caching Configuration. New tables start at 5 minutes. Leave it blank or set it to 0 to cache nothing (every page view fetches the sheet, which is slower).
  • DataTables: the table updates on its Auto sync schedule, or right away when you click Sync now. Scheduled syncs run in the background through WordPress's scheduled tasks (WP-Cron), so you don't need to keep the admin open. The first import and Sync now run from the table screen, so keep it open until the progress bar finishes. Intervals run from every 5 minutes to every 7 days. See Google Sheets & CSV auto sync.

Requirements for DataTables sync ​

  • The link must be HTTPS. Other links are rejected with "Please provide a valid HTTPS URL."
  • The link must be reachable from your server over the public internet. Private and internal addresses (such as localhost or a local network IP) are blocked.
  • A Google Sheets link that is not in CSV form (for example one ending in /pubhtml) is converted to the CSV form for you.
  • Deleting the table also cancels its scheduled sync and cleans up any sync that is still running.

Links and images in your sheet only carry over on the FooTable engine.

  • Hyperlinks: set the column's type to HTML field. Open the column header › Column settings, change Type to HTML field and save. Links from the sheet become clickable.
  • Images: add images to cells in Google Sheets with Insert › Image › Insert image in cell, and set the column type to HTML field. The images show in the table.

DataTables tables get plain text

On DataTables, the sheet is read as CSV, which holds only text. Links, images and cell formatting are lost. If you need them, create the table with FooTable.

On either engine, if a column holds plain URLs (for example https://example.com/photo.jpg), you can turn them into links or images with Transform value (Pro).

Formatting from the sheet (colors, bold text, fonts) isn't copied on either engine. Style the table in the Styling tab of Table Design instead.

Tutorial video ​

For any other CSV file on the web, see Remote CSV.