Set the map on an area that you want to track and this Applet will add a row of info to a Google Drive spreadsheet each time you arrive at or leave the area.
Then
Add row to spreadsheet
This action will add a single row to the bottom of the first worksheet of a spreadsheet you specify. Note: a new spreadsheet is created after 2000 rows.
ID XnveYFDL
Explore more great ways to automate Google Sheets and Location