Hi Mudit Maloo,
Good day! Welcome to Q&A forum.
There are some ways tracking the site activity in SharePoint Online for your reference.
- Use the simple way to add a Site Activity web part on a page to show the visual track dashboard.
Use the Site Activity web part - Microsoft Support
- Use the Audit log in Microsoft 365 for more detailed information about the activities in SharePoint Online.
Audit log activities | Microsoft Learn
You can manually export the activities to an Excel file in your environment.
Hope these information helps.
Please do let us know if you have any further queries.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.