I have a personal portfolio website that I have hosted on azure as an azure static website. Now I just wanted to know is there anyone visited my website or not. How can i do that. Thanks
-
`azure static website` --> You mean your website is hosted in Azure Storage. Right? – Gaurav Mantri Jun 13 '20 at 06:00
-
Yes, My website is hosted on Azure blog storage. – Tayeb Himel Jun 13 '20 at 06:22
1 Answers
Now I just wanted to know is there anyone visited my website or not. How can i do that.
There are two ways you can do that:
Enable Application Insights: You can enable Application Insights for your static web application hosted as a Single Page Application in Azure Storage. You can read more about it here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript.
View Storage Analytics Logs: Though not a very user friendly way to see the activity performed on your static website, but you can view the storage analytics logs to view the operations performed on blobs (essentially the files) in
$web
blob container (your static website is hosted in this blob container. You can read more about storage analytics here: https://learn.microsoft.com/en-us/azure/storage/common/storage-analytics

- 128,066
- 12
- 206
- 241