I switched browsers or my machine crashed — where's my data?
Restore from the latest Google Drive backup. Reconnect your sources. Your client analytics data was never stored on your machine, so you don't lose it — only your local config needs restoring.
What's happening
AgencyLens stores your OAuth tokens, agency-brand config, and CSV uploads in your browser's IndexedDB — encrypted, with the key derived from your sign-in session. That means if you switch browsers, switch machines, or your laptop dies, the IndexedDB on the old machine is gone. The Google Drive auto-backup feature exists precisely for this scenario: the backup includes everything we'd otherwise lose with the browser.
Your client analytics data itself was never on your machine. It lives on Google's and Meta's servers, and AgencyLens pulls fresh data every time you generate a report. So you don't lose any historical data — you just need to restore the agency-side config (tokens + uploads + brand settings).
How to fix it
- On the new browser / machine, sign in to AgencyLens with your email. You'll get a magic link by email like any other sign-in. (Your account is server-side, not browser-side — your license + email remain valid.)
- Open the Drive backup panel. Click Connect Google Drive and authorise the same Google account you used before. We use the narrow
drive.filescope so we only see files we've created — your other Drive content stays private. - You'll see a list of past backups in the AgencyLens folder in your Drive, most recent first.
- Click Restore on the most recent backup. AgencyLens decrypts the bundle and writes the records back to your new browser's IndexedDB. The page reloads automatically.
- After reload, your connections, uploads, and brand config should all be back. Verify by opening one of the source panels (GA4, GSC, etc.) and checking the connection still shows as Connected.
- If any OAuth tokens have expired in the meantime (e.g. a Meta long-lived token after 60 days), AgencyLens will prompt you to reconnect that specific source. Existing dashboards / templates are not affected.
If you never enabled Drive backup before the machine died: you'll need to reconnect each source manually and re-upload any CSV files. We can't recover what was never backed up.
When to email support
If you have a recent Drive backup, you've connected Drive on the new machine, but Restore fails with a decryption error — that's a real bug worth a ticket. Email support@agencylens.app with the timestamp of the backup you tried to restore and any error message shown.
Screenshots needed (operator notes)
- Drive backup panel with multiple historical backups listed
- Restore confirmation dialog
- Post-restore dashboard with sources reconnected