# Connect the tracker to Google Sheets

1. Create a new Google Sheet named **Ladakh Trip Expenses**.
2. Open **Extensions → Apps Script**.
3. Replace the sample code with `Code.gs`, then save.
4. Choose **Deploy → New deployment → Web app**.
5. Set **Execute as: Me** and choose the access option that allows all three travellers to use it.
6. Authorize the script, deploy it, and copy the URL ending in `/exec`.
7. Open the expense tracker, expand **People & Google Sheets setup**, paste the URL, and select **Connect & sync**.
8. Share the Sheet and the tracker link with the other two travellers.

## Change names

Open **Trip settings** in the app. Enter all three traveller names and select **Save trip settings**. All expenses use INR.

The initial names are Shine, Sijeesh and Prasad, and they can be edited. When a payer is selected, only that payer is selected in **Split between** by default. Tick the other travellers only when they share that expense.

## Hosting package

The `dist` folder is a complete static website. Upload the contents of `dist` to Netlify, Cloudflare Pages, GitHub Pages, or any ordinary static host. The hosted ChatGPT Site can also be used directly. Keep `Code.gs` in Google Apps Script; it is the shared-data backend.

Keep one traveller responsible for resolving conflicts if two people edit at exactly the same time. The tracker keeps a local phone copy and can export CSV as a backup.
