Published: 2024-07-12 Last Update: 2024-07-12

How to track Google Sheets that were shared to you

Create a Google Sheet with the following column headers from A1 to E1.

  • shared_by
  • filename
  • url
  • email_date
  • created_at

google sheets column header

Click Extensions > Apps Script. extensions apps script

You will see a screen like this. This is a Code.gs file where we can put Apps Script codes. apps script code.gs file

Copy this Code.gs file and paste it to replace everything in your Code.gs.

Your Code.gs file will now look something like this. apps script new code.gs file

Click save. apps script save

Take note that this script is set up to run once a day at 8am (not exact time, may vary). Change it accordingly. If you want, for example, to run it every 2pm, change the 8 to 14. apps script. trigger set up time

Click the dropdown then click initialize. apps script. select initialize function

Click Run. apps script. run initialize function

When prompted for Authorization required, click Review permissions. authorization required. review permissions

Login to your Google account. Take note that the title of your Apps Script project will show here. google account login

Click Advanced. advanced

Click Go to <project-name> (unsafe). unsafe link

Take note that the above is fine even if it says not verified or unsafe. It’s your apps script, so it’s fine.

Read the permissions that you will allow (might not be the same as the screenshot) before proceeding. Then click Allow. allow

At the bottom of the screen, wait for the execution to complete. apps script. execution complete

On the left side, click Triggers. apps script. triggers

You should see these triggers. apps script. trigger set up

The Google Sheet you created will be updated on the next 8am, or whatever time you updated it to. Below image is just a sample (not 8am though). google sheet. shared sheet