View Categories

How to Integrate Google Sheets with WP Travel?

Track all bookings instantly in Google Sheets for effortless management. By integrating WP Travel with Google Sheets, you can automatically log bookings, monitor payments, and organize trip data efficiently.

Step 1: Create a Google Project #

google cloud console dashboard
  • Click New Project.
cloud console new project section
  • Enter a Project Name and click Create.
project details
  • After creation, select your project from the notification bar or dropdown.
notification bar
  • Open the Navigation Menu
navigation menu
  • Navigate to APIs & Services โ†’ Enabled APIs & Services.
api and saervices

Step 2: Enable Google Sheets API #

  • In the Google Cloud Console, search for Google Sheets API.
google sheet api
  • Select the API
details of api
  • Click Enable.
google sheet api product details

Step 3: Create Credentials #

  • Navigate to APIs & Services โ†’ Credentials.
credentials of google sheet api
  • Click Create Credentials โ†’ Service Account.
service account
  • Enter the required details and click Create and Continue.
service account details
  • Click Done.
assign roles in service account

Step 4: Generate Service Account Key #

  • Under Service Accounts, click Edit for the account you just created.
service account key
  • Go to the Keys tab and click Add Key.
add key section
  • Click Create New Key.
create new key
  • Select JSON as the key type and click Create.
add json in the key
  • Download the credentials file and save it securely.
download credentials

Step 5: Connect Google Sheets with WP Travel #

  • Open Google Sheets and create a new sheet for adding bookings.
google sheets
  • Copy the Sheet ID from the URL (the long code between /d/ and /edit).
    Example:

    https://docs.google.com/spreadsheets/d/1AbCdEfGhIJKlmnopQrStUvWxYz1234567890/edit
    Sheet ID: 1AbCdEfGhIJKlmnopQrStUvWxYz1234567890
sheet id
  • Use the Sheet ID and JSON credentials (from Step 4) in your WP Travel plugin settings.
sheet id and json
  • Copy the Client Email from the JSON file.
client email from json
  • Add this Client Email to your Google Sheetโ€™s Share Settings with Editor access.
add client email in google sheets

Once connected, all WP Travel bookings will automatically sync to Google Sheets, enabling centralized tracking of your trips and bookings.

Step 6: Connect Enquiry Data (Optional) #

  • Open another Google Sheet for enquiries.
  • Copy the Sheet ID from the URL (the long code between /d/ and /edit).
    Example:

    https://docs.google.com/spreadsheets/d/1ARrFt_2bCAoxIF-44JjwIoxMCScLOYSAbf8IvmjIEZk/edit?gid=0#gid=0
    Sheet ID: 1ARrFt_2bCAoxIF-44JjwIoxMCScLOYSAbf8IvmjIEZk
enquiry data sheets
  • Use this Sheet ID in the WP Travel plugin settings.
google sheet id for enquiry data
  • Copy the Client Email from the JSON file.
json file for client email
  • Add the same Client Email to your Google Sheetโ€™s Share Settings with Editor access.
google sheet sharing with client email

Notes:

  • If the travel date is empty, check the booking details to verify whether the user booked multiple trips.
  • If the payment method is empty, it indicates the booking was made as Booking Only.