Google Sheets Integration Setup
Community Surveys supports Google Sheets integration, allowing survey responses to automatically sync to a Google Sheets spreadsheet in real-time. This guide covers the initial setup of Google API credentials required for the integration.
Community Surveys 7.0+ includes a comprehensive Integrations Dashboard that provides a unified interface for managing Google Sheets, Webhooks, and other integrations. See the complete integrations documentation for details on configuring and managing all integration types.
Prerequisites
Before setting up Google Sheets integration, you need:
- A Google account
- Access to Google Cloud Console
- Administrator access to your Joomla site
Step 1: Create Google OAuth Credentials
First, create an OAuth 2.0 application in Google Cloud Console:
1.1 Access Google Cloud Console
- Go to Google Cloud Console
- Sign in with your Google account
- Create a new project or select an existing one
1.2 Enable Required APIs
- Navigate to APIs & Services → Library
- Search for and enable:
- Google Sheets API
- Google Drive API
1.3 Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Select External user type (or Internal for Google Workspace)
- Fill in the required fields:
- App name: "Community Surveys Integration"
- User support email: Your email
- Developer contact email: Your email
- Add scopes:
https://www.googleapis.com/auth/spreadsheetshttps://www.googleapis.com/auth/drive.file
- Add your email as a test user (for External apps)
1.4 Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Select Web application
- Configure the application:
- Name: Community Surveys
- Authorized redirect URIs: Add your callback URL
Determining Your Callback URL
The callback URL format is:
https://yoursite.com/your-surveys-menu?task=integration.oauth
Where your-surveys-menu is the alias of your Surveys Listing menu item.
Examples:
https://example.com/surveys?task=integration.oauthhttps://example.com/feedback/surveys?task=integration.oauth
The callback URL must exactly match what you enter in Google Cloud Console, including the protocol (https) and any subdirectories.
- Click Create and note your Client ID and Client Secret
Step 2: Configure Community Surveys
Add your Google OAuth credentials to Community Surveys:
- Go to Components → Community Surveys
- Click Options in the toolbar
- Navigate to the Integrations tab
- Enable Google Sheets Integration
- Enter your OAuth Client ID
- Enter your OAuth Client Secret
- Click Save & Close
Your site is now configured for Google Sheets integration.
Step 3: Connect a Survey to Google Sheets
With credentials configured, you can now connect individual surveys:
Using the Integrations Dashboard (Recommended)
- Go to Components → Community Surveys → Surveys
- Click on a survey to edit
- Click the Integrations button in the toolbar
- Click Add Integration
- Select Google Sheets from the catalog
- Click Connect to authorize with Google
- Enter your Spreadsheet ID (or create a new spreadsheet)
- Configure additional options as needed
- Click Save
For detailed configuration options, see the Integrations Documentation.
Finding Your Spreadsheet ID
From your Google Sheets URL:
https://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit
The Spreadsheet ID is: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms
How It Works
Once connected:
- When a user submits a survey response, the integration is triggered
- Response data is formatted and sent to Google Sheets API
- A new row is appended to your spreadsheet with the response data
- Headers are automatically created on first sync
- Sync status is logged for monitoring
Configuration Options
| Option | Description | Required |
|---|---|---|
| Spreadsheet ID | The ID from your Google Sheets URL | Yes |
| Sheet Name | The specific sheet tab to use (default: "Survey Responses") | No |
| Include Metadata | Add columns for response ID, timestamp, IP, location, browser | No |
Troubleshooting
"Access Denied" or "Invalid Client"
- Verify Client ID and Secret are copied correctly
- Ensure the redirect URI matches exactly
- Check that required APIs are enabled
"Token Expired"
- Re-authorize by clicking Connect in the integration settings
- Tokens are automatically refreshed but may expire after long periods
"Spreadsheet Not Found"
- Verify the Spreadsheet ID is correct
- Ensure the spreadsheet exists and hasn't been deleted
- Check that you're using the same Google account
For more troubleshooting tips, see the Integrations Troubleshooting Guide.
Next Steps
- Complete Integrations Documentation - Full guide to all integration features
- Webhook Integration - Connect to Zapier, Make, and custom backends
- Field Mapping - Customize how data is mapped


