Skip to content

Google Sheets

Andreas Michael edited this page Nov 30, 2026 · 2 revisions

Google Sheets Integration

The ESN Membership Manager can automatically log every assigned ESNcard to a row in a Google Sheet. This is useful for keeping a unified ledger of both online (Stripe) and manual/in-person sales.

Prerequisites

  1. A Google Cloud Console project with the Google Sheets API enabled.
  2. Your Google Service Account JSON uploaded and Google Integration enabled in Omnia Settings.

1. Service Account & API

Before configuring the Sheet, you must set up a Google Cloud Project and Service Account in Omnia:

  • Follow the Google Services Setup guide to create your Service Account, enable the Google Sheets API, and upload the JSON key in Omnia Settings.

2. Prepare the Spreadsheet

  1. Create a new Google Sheet (or open your existing sales sheet).
  2. Share with Service Account:
    • Find the client_email of your Service Account (e.g., esn-manager@project-id.iam.gserviceaccount.com).
    • Click Share in the Google Sheet.
    • Paste the service account email and give it Editor access.
    • Without this step, the module cannot write to the sheet.
  3. Prepare the Columns: The module appends rows across columns A:H with the following 8 values. Add these headers to the first row of your sheet:
Date Name Card Number POS Host Nationality MOP Amount
dd/mm/yy Full Name ESNcard # ESN Membership Manager Host Institution Nationality Stripe or Manual Price

Note

For Stripe payments, Amount is automatically fetched from your configured Stripe Price IDs (including any processing fee). For manually marked payments, MOP is recorded as Manual and Amount as Unknown.

3. Module Configuration

  1. Ensure Google Integration and your Service Account JSON are configured in Omnia Settings.
  2. Navigate to the module settings: /admin/config/system/esn-membership-manager.
  3. Under Enable / Disable Features > Logging, check Enable Google Sheets Integration.
  4. In the Google Sheets Settings section:
    • Spreadsheet ID:
      • Look at the URL of your spreadsheet: https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit
      • Copy the long ID string between /d/ and /edit.
    • Sheet Name:
      • Enter the exact name of the tab where rows should be appended (e.g., Data).
  5. Click Save configuration.

Clone this wiki locally